summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/libgq/gconf/gconfitem.cpp
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2021-05-04 16:20:48 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2021-06-16 15:53:23 +0200
commit1f4b237dade9d0d2ed5439e3834ac22985797561 (patch)
tree0be5b2d2e06765959acddc98395ef07e8d4541bd /src/3rdparty/libgq/gconf/gconfitem.cpp
parent9661cde1615e21f5b6bbffe3e687cacba247f514 (diff)
Use year with same day-of-week pattern as fallback for out-of-range
The kludge previously implemented for handling dates outside the supported time_t range, by asking for a corresponding date in a year in the range, had a comment remarking that this is broken due to the wrong day of the week and, consequently, the placement of DST transitions, e.g. those scheduled by the last Sunday of a month, happening on different dates in the year asked about and the in-range year passed to the system time_t functions. This can be handled by selecting a year in the time_t range which has the same pattern days of the week (and length of the year, i.e leap-ness). That may (particularly for leap years) need to select a year far from the end of the range (and there may be a change to the zone's rules between the selected year and the end). Change-Id: Ia353b2cc7b7d266b7abf80e37cac61544ce95c2d Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/3rdparty/libgq/gconf/gconfitem.cpp')
0 files changed, 0 insertions, 0 deletions