Fix bug with internal test script

Date times with a 00:00:00 would not be saved correctly for Fitbits
pull/154/head
JulioV 2021-07-16 16:56:02 -04:00
parent ad5796ed5e
commit 18463f5e8e
1 changed files with 1 additions and 0 deletions

View File

@ -23,6 +23,7 @@ def assign_test_timestamps(file_path):
if "fitbit" in file_path:
data_with_timestamps.insert(0, "timestamp", 0)
data_with_timestamps["local_date_time"] = data_with_timestamps["local_date_time"].dt.strftime('%Y-%m-%d %H:%M:%S')
else:
# Convert local_date_time with timezone to timestamp
data_with_timestamps.insert(0, "timestamp", data_with_timestamps["local_date_time"].dt.tz_localize(tz="America/New_York").astype(np.int64) // 10**6)