settings: Use std::chrono::seconds instead of s64 for RTC
This commit is contained in:
parent
dbb1eb9c29
commit
05dbb47af5
6 changed files with 21 additions and 17 deletions
|
@ -96,8 +96,7 @@ struct System::Impl {
|
|||
kernel.Initialize();
|
||||
|
||||
const auto current_time = std::chrono::duration_cast<std::chrono::seconds>(
|
||||
std::chrono::system_clock::now().time_since_epoch())
|
||||
.count();
|
||||
std::chrono::system_clock::now().time_since_epoch());
|
||||
Settings::values.custom_rtc_differential =
|
||||
Settings::values.custom_rtc.value_or(current_time) - current_time;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue