Make animation dock follow default timezones

This commit is contained in:
AdenKoperczak 2025-06-08 15:40:44 -04:00
parent 4306bb09ae
commit 26e24da4b5
No known key found for this signature in database
GPG key ID: 9843017036F62EE7
8 changed files with 205 additions and 47 deletions

View file

@ -17,6 +17,18 @@ std::chrono::sys_days SysDays(const QDate& date)
julianEpoch);
}
local_days LocalDays(const QDate& date)
{
#if (__cpp_lib_chrono >= 201907L)
using namespace std::chrono;
#else
using namespace date;
#endif
auto yearMonthDay =
year_month_day(year(date.year()), month(date.month()), day(date.day()));
return local_days(yearMonthDay);
}
} // namespace util
} // namespace qt
} // namespace scwx