Closed Ashish558 closed 10 months ago
let updatedDate = moment("Thu, 02 Nov 2023 09:00:00 GMT").tz("Us/Eastern").format('YYYY-MM-DD HH:mm:ss')
expected 2023-11-02 04:00:00 EDT (-05:00)
2023-11-02 04:00:00 EDT (-05:00)
actual output 2023-11-02 05:00:00 EDT (-04:00)
2023-11-02 05:00:00 EDT (-04:00)
Eastern time is 5 hours behind GMT, why is it showing -04:00
let updatedDate = moment("Thu, 02 Nov 2023 09:00:00 GMT").tz("Us/Eastern").format('YYYY-MM-DD HH:mm:ss')
expected
2023-11-02 04:00:00 EDT (-05:00)
actual output
2023-11-02 05:00:00 EDT (-04:00)
Eastern time is 5 hours behind GMT, why is it showing -04:00