POSIX epoch format to timezone using moment

25 views Asked by At

I came across use where I'm getting time in POSIX epoch format. I want to convert it to local date of given timezone. but momentjs is giving different result.

moment .unix(1700742300) .tz('America/New_York') .format('');

Result: '2023-11-23T07:25:00' but actual answer has to be '2023-11-23T07:15:00.000'

0

There are 0 answers