I am running into an issue trying to convert momentjs over to day.js.
In moment, I converted utc to local time via moment.utc('2020-04-22T14:56:09.388842').local().format('MM/DD/YY h:mm A')
which returns 04/22/20 9:56 AM
.
When I convert with day.js via dayjs.utc('2020-04-22T14:56:09.388842').local().format('MM/DD/YY h:mm A')
, I get 04/22/20 2:56 PM
; I am importing the utc plugin.
I put an example in jsfiddle here: https://jsfiddle.net/obdg74sp/2/
Has anyone ran into this issue and if you did, how did you resolve it?
Thank you.