Fixed some silliness caused by the JS Date object.