DateTimeController: Fix integer overflow

This commit is contained in:
Riku Isokoski 2023-02-26 09:58:33 +02:00
parent a5eac74fb5
commit bf8dca202c

View File

@ -67,7 +67,7 @@ namespace Pinetime {
return static_cast<Days>(daysSinceSunday);
}
uint8_t DayOfYear() const {
int DayOfYear() const {
return localTime.tm_yday + 1;
}