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