Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Jul 2020 01:29:47 +0000
From:      bugzilla-noreply@freebsd.org
To:        gecko@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 248338] www/firefox does not return whole number in javascript for getTimezoneOffset
Message-ID:  <bug-248338-21738-vVKcmeQ1yU@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-248338-21738@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-gecko (Nobody)
<gecko@FreeBSD.org> 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


help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-248338-21738-vVKcmeQ1yU>