Fixed the broken Javascript date handling.