Closed
Description
Parsing an email date string doesn't work by default:
var email_date = "Mon, 23 Jan 2012 08:36:10 -0500";
moment(email_date);
Outputs: 2012-01-23 05:36:10
Expected: 2012-01-23 13:36:10
So I decided to specify the format, but that doesn't work either, maybe I'm doing it wrong:
var email_date = "Mon, 23 Jan 2012 08:36:10 -0500";
moment(email_date, "ddd, DD MM YYYY h:m:s ZZ");
Output: 2011-12-22 19:36:10
Expected: 2012-01-23 13:36:10
Metadata
Metadata
Assignees
Labels
No labels