From 92af161b12f73b8ae10b8d8159e5ef7ca4ce1a95 Mon Sep 17 00:00:00 2001 From: JP Swinski Date: Tue, 26 Apr 2022 10:50:22 -0400 Subject: [PATCH] fixed windows only time code for day of year --- packages/core/TimeLib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/TimeLib.cpp b/packages/core/TimeLib.cpp index 9a192e3ed..d16a31dec 100644 --- a/packages/core/TimeLib.cpp +++ b/packages/core/TimeLib.cpp @@ -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;