Use datetime with 0 hours 0 minutes to avoid problems (#5168)