https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #9 from tech-li...@zyxst.net ---
(In reply to andrew from comment #5)
Well done, that was it. I'd never have guessed, nor did lots of others.
Now it's sane on the 12-stable desktop too:
new Date()
Date Wed Jul 29 2020 19:30:53
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #8 from and...@tao11.riddles.org.uk ---
That option should probably have a warning on it:
a) it violates the posix spec
b) as a result of (a), it leads to strange and often unpredictable
inconsistencies and/or failures; some
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #7 from tech-li...@zyxst.net ---
OK, made a 12-stable vm from downloaded snapshot, installed firefox and it
reports a sane new Date():
new Date()
Date Wed Jul 29 2020 18:29:23 GMT+0100 (BST)
new Date().getTimezoneOffset()
-60
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #6 from tech-li...@zyxst.net ---
(In reply to andrew from comment #5)
Now, that might be it. That setting is present on the desktop in /etc/src.conf
on both the desktop and the vm.
I'll install a 12.1-R vm, install firefox as a
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #5 from and...@tao11.riddles.org.uk ---
(In reply to tech-lists from comment #4)
Make sure you're NOT using the WITH_ZONEINFO_LEAPSECONDS_SUPPORT option in
src.conf when building the system.
--
You are receiving this mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #4 from tech-li...@zyxst.net ---
In firefox again:
new Date('1971-10-31');
Date Sun Oct 31 1971 01:00:00 GMT+0100 (BST)
new Date('1972-10-31');
Date Tue Oct 31 1972 23:59:59 GMT+2359 (GMT)
new Date('1972-06-12');
Date Mon Jun
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #3 from tech-li...@zyxst.net ---
If (on firefox) I do
new Date(0)
result is:
Date Thu Jan 01 1970 01:00:00 GMT+0100 (BST)
so there the offset is correct
maybe a javascript problem in firefox?
--
You are receiving this mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
--- Comment #2 from tech-li...@zyxst.net ---
(In reply to andrew from comment #1)
Hi,
Exact output (from Firefox) of new Date():
Date Wed Jul 29 2020 03:18:27 GMT+0059 (BST)
output of date (from tcsh) a few minutes later is Wed 29 Jul
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248338
and...@tao11.riddles.org.uk changed:
What|Removed |Added
CC|
Bugzilla Automation has asked freebsd-gecko (Nobody)
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
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
11 matches
Mail list logo