I have this line in my app:
const createdOn: moment.Moment = moment.utc(created_on)
This basically imports created_on
as an UTC timezone. created_on
is also UTC
. So, this method does not break the timezone and import UTC properly. Also I have this one:
That generates current timestamp in UTC timezone.
moment.utc()
Note that, If I just import date to moment and then convert it to UTC, my time goes wrong. Moment by default assumes given date is equal to current visitors timezone. I need to import time as it is. Which is UTC all the time.
What is the equivelant on Luxon
?