02:00:00
with 00:00:01
02:00:00
moment("24. Mar 2020 at 12:53", "DD. MMM YYYY at HH:mm", true).format();
// => "2020-03-24T00:53:00+01:00"
moment("24. Mar 2020 at 13:53", "DD. MMM YYYY at HH:mm", true).format();
// => "2020-03-24T13:53:00+01:00"
Hello, I want to add support for the Tigrinya locale to moment.
Is there a standard procedure in order to satisy the quality of the locales?
Hi :)
How can I create a Date in a different timezone, I mean really a date that a user would see in another timezone when using new Date()
Here in central europe new Date
outputs this:
Fri Oct 09 2020 14:34:00 GMT+0200 (Midden-Europese zomertijd)
In Bangkok it should output this:
Fri Oct 09 2020 19:34:00 GMT+0700 (Indochinese tijd)
(I simulated by changing the system clock of the computer)
I was playing with moment timezone:
console.log(moment.tz('2020-10-08 21:00:00', 'Asia/Bangkok').toDate());
console.log(moment.tz('2020-10-08 21:00:00', 'Europe/Paris').toDate());
Running that code with system timezone Central Europe returns this:
1.) Thu Oct 08 2020 16:00:00 GMT+0200 (Midden-Europese zomertijd)
2.) Thu Oct 08 2020 21:00:00 GMT+0200 (Midden-Europese zomertijd)
Both dates are different and the offset is correct, but somehow the timezone is not changing.
I would expect to see GMT+0700 (Indochinese tijd) for the first output.
moment('W52 2020', '[W]ww YYYY').add({ week: 1})
=>'W01 2020'
? Shouldnt it be 2021?