Change datetime to local datetime

I added moment.js which is much better than JavaScript's default date time library.
It will automatically parse the input dates as if they were for the local time zone.
That is, the data and the time will always be the same, e.g., 3 minutes at 4pm will be 3 minutes at 4pm in Sydney, Perth and New York.