Even the value I set for the time in the moment.js timezones same following two different approaches the value of the date returned is different
moment("02:00","HH:mm").tz('America/Chicago').format()returns 2022-03-31T15:30:00-05:00
moment().tz('America/Chicago').set({hour:"02",minute:"00"})returns 2022-04-01T02:00:02-05:00
And if I have a date string 2022-03-30T08:13:44.478+00:00 which I want to convert to specific time zones as below
moment(`2022-03-30T08:13:44.478+00:00`).tz('America/Chicago')
is it the right way if I want to compare it with the current date of that timezone?
moment(`2022-03-30T08:13:44.478+00:00`).tz('America/Chicago').isSameOrAfter(moment().tz('America/Chicago'))