Has anyone experienced different time zones when using momentjs versus date object in a chrome desktop and mobile?
When I execute the following in my desktop the result is OK
moment(moment('01-01-1900', 'DD-MM-YYYY').format()).toDate()
Mon Jan 01 1900 00:00:00 GMT+0000 (GMT Standard Time)
But when in chrome mobile, the date loses about 7 minutes:
moment(moment('01-01-1900', 'DD-MM-YYYY').format()).toDate()
Sun Dec 31 1899 23:53:15 GMT-0036 (Hora padrão da Europa Ocidental)
I am using this library as part of a application and user 1900 as the default date (as null) in my code. For now I have overcome this issue by using 1970 as a default year and it appears to yield the correct results.
Any help appreciated. Thanks.