QT detect when a given date time is under day light saving or not

262 Views Asked by At

We have an application that is failing because of DST, we use EST or New york time as our reference, I want to know whethere a given DateTime (QDateTime) is under DST or not, say if I pass Nov 2, 2021 i want to know if that date is under DST (Which it is) or not so we can perform our adjustment. Is there a way programatically in QT to detect it? or maybe thru standard library time.h?

0

There are 0 best solutions below