mirror of
https://github.com/InfiniTimeOrg/InfiniTime.git
synced 2024-10-22 15:11:51 +02:00
datetime: Add comment explaining what the offset means
This commit is contained in:
parent
8432cbe8f8
commit
f6592efbe9
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue