Bugzilla Automation <[email protected]> has asked freebsd-gecko (Nobody)
<[email protected]> for maintainer-feedback:
Bug 248338: www/firefox does not return whole number in javascript for
getTimezoneOffset
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338



--- Description ---
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
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-gecko
To unsubscribe, send any mail to "[email protected]"

Reply via email to