diff --git a/src/components/datetime/DateTimeController.cpp b/src/components/datetime/DateTimeController.cpp index 102a4bce..29183391 100644 --- a/src/components/datetime/DateTimeController.cpp +++ b/src/components/datetime/DateTimeController.cpp @@ -28,6 +28,7 @@ DateTime::DateTime(Controllers::Settings& settingsController) : settingsControll ASSERT(mutex != nullptr); 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); }