Fixed bug where the hour in the returned date object was incorrect