Reputation: 452
I had a few concerns about using moment timezone conversion. I was using moment to convert to New York time from UTC using utcOffset. But later switched it to moment-timezone. The current implementation is:
console.log(moment(pickedDate).tz("America/New_York").format(format1));
The above implementation works properly. But, I had some questions. Like,
pickedDate
is in the user's timezone as described by the browser locale information.Upvotes: 0
Views: 79
Reputation: 6951
Consider using something else that moment. Moment is no longer in active development. See this.
I use day.js myself, and I am very pleased.
Working with timezones and DST can be very cumbersome. I don't think anyone can answer your question perfectly here.
Consider the using the following approaches:
Upvotes: 1