Fixed error with date displaying the wrong day of the month