Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9ab08a7

Browse files
elbeejaythodson-usgs
andauthoredJun 29, 2023
Format datetime with ISO8601 (#104)
Co-authored-by: thodson <thodson@usgs.gov>
1 parent 37f4190 commit 9ab08a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
 

‎dataretrieval/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def format_datetime(df, date_field, time_field, tz_field):
7878
df['datetime'] = pd.to_datetime(df[date_field] + ' ' +
7979
df[time_field] + ' ' +
8080
df[tz_field],
81-
format='%Y-%m-%d %H:%M',
81+
format='ISO8601',
8282
utc=True)
8383

8484
# if there are any incomplete dates, warn the user

‎requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
numpy
2-
pandas==1.*
2+
pandas==2.*
33
scipy
44
python-dateutil
55
requests

‎requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
numpy
2-
pandas==1.*
2+
pandas==2.*
33
python-dateutil
44
requests

0 commit comments

Comments
 (0)
Please sign in to comment.