bug#40765: [Bug-gnuzilla] JavaScript bug in Date class, incorrect date/time returned

2020-04-22 Thread Ben Sturmfels
On Wed, 22 Apr 2020, Ben Sturmfels wrote: > One additional note that may help others diving into this issue. I found that > disabling "privacy.resistFingerprinting" immediately changed the result of > `new > Date().toString()` on all tabs, but `new Date().getTimezoneOffset()` was > changed >

bug#40765: [Bug-gnuzilla] JavaScript bug in Date class, incorrect date/time returned

2020-04-22 Thread Ben Sturmfels
One additional note that may help others diving into this issue. I found that disabling "privacy.resistFingerprinting" immediately changed the result of `new Date().toString()` on all tabs, but `new Date().getTimezoneOffset()` was changed only on the about:config tab. After a restart all tabs

Re: [Bug-gnuzilla] JavaScript bug in Date class, incorrect date/time returned

2019-06-20 Thread Jelle Geerts
Hi Mark, Thanks for responding. It appears that this behavior is controlled by the privacy.resistFingerprinting option. Setting it to false solves the problem on IceCat for the desktop, but the problem persists on IceCatMobile (Android), regardless of the option. (Even after clearing the app's

Re: [Bug-gnuzilla] JavaScript bug in Date class, incorrect date/time returned

2019-06-20 Thread Mark H Weaver
Hi Jelle, Jelle Geerts writes: > var s1 = new Date().toString(); > var s2 = new Date().toLocaleString(); > var s3 = new Date().toLocaleString('nl', {'timeZone': 'Europe/Amsterdam'}); > > The resulting strings were: > s1 === 'Fri Jun 07 2019 13:58:32 GMT+ (UTC)' > s2 === '6/7/2019,

[Bug-gnuzilla] JavaScript bug in Date class, incorrect date/time returned

2019-06-07 Thread Jelle Geerts
var s1 = new Date().toString(); var s2 = new Date().toLocaleString(); var s3 = new Date().toLocaleString('nl', {'timeZone': 'Europe/Amsterdam'}); The resulting strings were: s1 === 'Fri Jun 07 2019 13:58:32 GMT+ (UTC)' s2 === '6/7/2019, 1:58:32 PM' s3 === '7-6-2019 15:58:32' s1 is not