Compare commits

..

2 commits

Author SHA1 Message Date
FintasticMan f3cccfa98c
Merge f5235b4d7c into a2356f2f4a 2024-10-08 11:08:03 +02:00
FintasticMan f5235b4d7c
datetime: Set the default year to the year during compile 2024-10-08 11:07:47 +02:00

View file

@ -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) {