Skip to content

Commit

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

Expand Down

0 comments on commit 7ec8f1c

Please sign in to comment.