Compare commits

...

2 commits

Author SHA1 Message Date
FintasticMan 106df9275f
Merge f6592efbe9 into a2356f2f4a 2024-10-06 14:49:01 +02:00
FintasticMan f6592efbe9
datetime: Add comment explaining what the offset means 2024-10-06 14:48:35 +02:00

View file

@ -28,6 +28,7 @@ DateTime::DateTime(Controllers::Settings& settingsController) : settingsControll
ASSERT(mutex != nullptr); ASSERT(mutex != nullptr);
xSemaphoreGive(mutex); 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]), 0, 0, 0, 0, 0);
} }