mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
Compare commits
2 commits
b4eea7c536
...
f3cccfa98c
Author | SHA1 | Date | |
---|---|---|---|
f3cccfa98c | |||
f5235b4d7c |
|
@ -29,7 +29,7 @@ DateTime::DateTime(Controllers::Settings& settingsController) : settingsControll
|
|||
xSemaphoreGive(mutex);
|
||||
|
||||
// __DATE__ is a string of the format "MMM DD YYYY", so an offset of 7 gives the start of the year
|
||||
SetTime(compileTimeAtoi(&__DATE__[7]), 0, 0, 0, 0, 0);
|
||||
SetTime(compileTimeAtoi(&__DATE__[7]), 1, 1, 0, 0, 0);
|
||||
}
|
||||
|
||||
void DateTime::SetCurrentTime(std::chrono::time_point<std::chrono::system_clock, std::chrono::nanoseconds> t) {
|
||||
|
|
Loading…
Reference in a new issue