From c5f90f11935cdf67a7e9e3da84a2c709314a45b8 Mon Sep 17 00:00:00 2001 From: shrddr Date: Sat, 11 May 2024 16:51:48 +0300 Subject: [PATCH] keep old DST with smaller units --- implot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implot.cpp b/implot.cpp index cf9d16ca..f120bd60 100644 --- a/implot.cpp +++ b/implot.cpp @@ -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); }