Fix datetime_to_epoch accuracy