diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2021-07-28 12:10:51 +0200 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-08-13 10:39:03 +0000 |
commit | a18926c736bf9de6bd652c8bb1799d4678001341 (patch) | |
tree | 6457a9aa94c2f6e12f6b780c0751f6db2718e861 /src/particles/qquickage.cpp | |
parent | 2c3ea30205efef22146f3c7218d60b39fee991c2 (diff) |
Use QDateTime to get offsets for emscripten (wasm)
Since our wasm implementation doesn't have access to time-zone data by
default, but its QDateTime implementation does manage to get offsets
right for local time, use it as fall-back for V4's Date
implementation's DaylightSavingTA() and getLocalTZA().
This implementation might also be viable for other cases without
timezone support (and a way to reset it when the system zone has
changed), but we'll need to experiment to find out. For now, since we
have nothing better for wasm, use it there.
In passing, update a comment about a bug report against the ECMA spec
to say it's been fixed (and we're compatible with the result).
Fixes: QTBUG-95314
Change-Id: I40c1537815ada950dc0b5cebd4d641f7bfc45bd9
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
(cherry picked from commit 373897481fb930055e6e89035b1055f8dd80b83f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/particles/qquickage.cpp')
0 files changed, 0 insertions, 0 deletions