Skip to content

Commit 7ec8f1c

Browse files
committed
handle possible DST change within FloorTime()
1 parent f156599 commit 7ec8f1c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

implot.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ ImPlotTime FloorTime(const ImPlotTime& t, ImPlotTimeUnit unit) {
10361036
case ImPlotTimeUnit_Min: gp.Tm.tm_sec = 0; break;
10371037
default: return t;
10381038
}
1039+
if (unit >= ImPlotTimeUnit_Day) gp.Tm.tm_isdst = -1;
10391040
return MkTime(&gp.Tm);
10401041
}
10411042

0 commit comments

Comments
 (0)