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:   [Bug 248338] www/firefox does not return whole number in javascript for getTimezoneOffset
Message-ID:  <bug-248338-21738@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248338

            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: gecko@FreeBSD.org
          Reporter: tech-lists@zyxst.net
             Flags: maintainer-feedback?(gecko@FreeBSD.org)
          Assignee: gecko@FreeBSD.org

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-st=
able
r363045 via poudriere

Tested on vm installation freebsd-current r363183 firefox 79.0,1 from offic=
ial
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

--=20
You are receiving this mail because:
You are the assignee for the bug.=



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