I have a datepicker which was returning a moment object that was always in UTC timezone. I needed to do some logic on this date, but always wanted it in the users local timezone
I had figured out that it's the 'a' flag in the format string. I changed it to 'YYYY-MM-DDTHH:mm:ss' and it worked perfectly. Safari must not like am/pm data