date time helper fix