Kim Adams commited on
Commit ·
0b3bc67
1
Parent(s): bf32d0e
updating reqs
Browse files- utilities/date_format.py +1 -1
utilities/date_format.py
CHANGED
|
@@ -3,7 +3,7 @@ from pytz import timezone
|
|
| 3 |
|
| 4 |
def TimeStampToDateAndTime(timestamp_str):
|
| 5 |
# Given timestamp in format "2023-09-07T15:00:00+00:00"
|
| 6 |
-
|
| 7 |
utc_dt = datetime.fromisoformat(timestamp_str)
|
| 8 |
utc_zone = timezone('UTC')
|
| 9 |
ct_zone = timezone('America/Chicago')
|
|
|
|
| 3 |
|
| 4 |
def TimeStampToDateAndTime(timestamp_str):
|
| 5 |
# Given timestamp in format "2023-09-07T15:00:00+00:00"
|
| 6 |
+
timestamp_str = timestamp_str.replace('Z', '+00:00')
|
| 7 |
utc_dt = datetime.fromisoformat(timestamp_str)
|
| 8 |
utc_zone = timezone('UTC')
|
| 9 |
ct_zone = timezone('America/Chicago')
|