You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before setting the default timezone everything seems to be working fine, but after it's been set all hell breaks loose.
Here's the code:
var beforeTz = moment('1500673235723', 'x').format('h:mma DD/MM/YYYY');
moment.tz.setDefault('Europe/Athens')
var afterTz = moment('1500673235723', 'x').format('h:mma DD/MM/YYYY');
alert(`\nBEFORE: ${beforeTz}\nAFTER: ${afterTz}`);
I've tried with various versions.
It seems to be working when using moment-timezone: 0.3.1 but if I go above that it just fails to read that timestamp.
which today are:
"moment": "2.18.1",
"moment-timezone": "0.5.13",
Any idea why that's happening?
ty
The text was updated successfully, but these errors were encountered:
Hey there @timrwood
Check this fiddle http://jsfiddle.net/sudoplz/zgfbd2mf/4/
Before setting the default timezone everything seems to be working fine, but after it's been set all hell breaks loose.
Here's the code:
I've tried with various versions.
It seems to be working when using
moment-timezone: 0.3.1
but if I go above that it just fails to read that timestamp.which today are:
Any idea why that's happening?
ty
The text was updated successfully, but these errors were encountered: