fixed an embarrassing time-and-date bug