fixed datetimeToEpoch again