maybe fixing a small bug in datetime