Fix bug in datetime_to_epoch_time

Test Plan: -

Reviewers: dyschultz, lydia, marcua

Reviewed By: marcua

Differential Revision: https://phabricator.locu.com/D7692