Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -188,7 +188,7 @@ def get_firebase_data(sequence_length: int, latitude: float, longitude: float):
|
|
| 188 |
# Parse the datetime string using the correct format 'YYYY-MM-DDTHH:MM'
|
| 189 |
# We assume the datetime in Firebase is already in UTC or is timezone-naive
|
| 190 |
# and we treat it as UTC based on the original code's localization attempt.
|
| 191 |
-
timestamp = datetime.
|
| 192 |
timestamp = pytz.utc.localize(timestamp)
|
| 193 |
|
| 194 |
data_point = {
|
|
|
|
| 188 |
# Parse the datetime string using the correct format 'YYYY-MM-DDTHH:MM'
|
| 189 |
# We assume the datetime in Firebase is already in UTC or is timezone-naive
|
| 190 |
# and we treat it as UTC based on the original code's localization attempt.
|
| 191 |
+
timestamp = datetime.strptime(datetime_str, '%Y-%m-%dT%H:%M')
|
| 192 |
timestamp = pytz.utc.localize(timestamp)
|
| 193 |
|
| 194 |
data_point = {
|