https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
Bug ID: 248338
Summary: www/firefox does not return whole number in javascript
for getTimezoneOffset
Product: Ports & Packages
Version: Latest
Hardware: amd64
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: [email protected]
Reporter: [email protected]
Flags: maintainer-feedback?([email protected])
Assignee: [email protected]
Hi,
"new Date().getTimezoneOffset()" should return a whole number and because it
does not with firefox (any version) on freebsd12-stable or current, it will
break some functionality with sites that use this when creating a JSON that
gets sanitised before it's accepted by the site.
Tested from desktop installation with addons, firefox 79.0,1 built in 12-stable
r363045 via poudriere
Tested on vm installation freebsd-current r363183 firefox 79.0,1 from official
freebsd pkgsite
Tested as above this time with firefox-esr-68.11.0,1
steps to reproduce:
1. open a javascript console in firefox
2. enter "new Date().getTimezoneOffset()" without the quotes
3. ctrl+enter
4. result should be a whole number
5. result in firefox is -59.55
6. result with firefox-esr is the same as regular firefox
Same test with iridium from same machine gives -60 as expected. Timezone is
Europe/London.
Same test from firefox on linux mint 18.2 gives 0
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"