summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopengl.h
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2023-06-07 14:08:15 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2023-06-09 18:01:01 +0200
commit207954d5f0751c61f8d8b325797a806ef5f8c854 (patch)
tree130d528d4978f63ae8bb55a137d22d3aaa999c84 /src/gui/opengl/qopengl.h
parent716df4965e75ff9e87278ea6753a4a311ce2c3bd (diff)
Avoid using Darwin date formatting before 1583
It turns out that Darwin's date formatting uses the Julian calendar for dates before 1582-10-15, when the Gregorian calendar first came into use (in some countries, while many others continued using Julian). This leads to discrepancies between the (Gregorian) dates we pass it for formatting and the (Julian) dates it actually prints, that are the same number of seconds before 1970. Previously the QLocale system backend for Darwin already had a kludge to work round its handling of negative years, so it suffices to extend that to years before 1583. Fixes: QTBUG-54955 Pick-to: 6.6 6.5 Change-Id: I70f219b73bf20c0cd63bcda2b0e99042354872ca Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/opengl/qopengl.h')
0 files changed, 0 insertions, 0 deletions