Skip to content

Commit c5f90f1

Browse files
committed
keep old DST with smaller units
1 parent bb224b6 commit c5f90f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

implot.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1036,7 +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-
gp.Tm.tm_isdst = -1;
1039+
if (unit >= ImPlotTimeUnit_Day) gp.Tm.tm_isdst = -1;
10401040
return MkTime(&gp.Tm);
10411041
}
10421042

0 commit comments

Comments
 (0)