Fixed a time and date bug