Skip to content

Commit

Permalink
fixed windows only time code for day of year
Browse files Browse the repository at this point in the history
  • Loading branch information
jpswinski committed Apr 26, 2022
1 parent a1a9b7b commit 92af161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/TimeLib.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ TimeLib::gmt_time_t TimeLib::gettime(int64_t now)
GetSystemTime(&systime);
gmt_time_t gmttime;
gmttime.year = systime.wYear;
gmttime.day = dayofyear(systime.wYear, systime.wMonth, systime.wDay);
gmttime.doy = dayofyear(systime.wYear, systime.wMonth, systime.wDay);
gmttime.hour = systime.wHour;
gmttime.minute = systime.wMinute;
gmttime.second = systime.wSecond;
Expand Down

0 comments on commit 92af161

Please sign in to comment.