fix a datetime format bug