Description
The Date.getTimezoneOffset() function is broken in Qt WebEngine. It always returns 0, regardless of the actual time zone.
Here is a script to demonstrate it:
from PyQt5.Qt import (QApplication, QWebEngineView) app = QApplication([]) w = QWebEngineView() w.setHtml('<script>alert(new Date().getTimezoneOffset())</script>') w.show() app.exec_()
This breaks time display on tons of websites.
Attachments
Issue Links
- is duplicated by
-
QTWB-7 Time in javascript
- Closed
For Gerrit Dashboard: QTBUG-55125 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
168422,2 | Fix sandboxing of localtime syscall | 5.7 | qt/qtwebengine | Status: MERGED | +2 | 0 |