Fixed issue with moment assuming a date is at the beginning of the day