changed treatments of day to make it consistent and correct for UTC 00:00:00