Skip to content

Commit

Permalink
keep old DST with smaller units
Browse files Browse the repository at this point in the history
  • Loading branch information
shrddr committed May 11, 2024
1 parent bb224b6 commit c5f90f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ ImPlotTime FloorTime(const ImPlotTime& t, ImPlotTimeUnit unit) {
case ImPlotTimeUnit_Min: gp.Tm.tm_sec = 0; break;
default: return t;
}
gp.Tm.tm_isdst = -1;
if (unit >= ImPlotTimeUnit_Day) gp.Tm.tm_isdst = -1;
return MkTime(&gp.Tm);
}

Expand Down

0 comments on commit c5f90f1

Please sign in to comment.