fix bug with times for date