Skip to content

Commit

Permalink
Format datetime with ISO8601 (#104)
Browse files Browse the repository at this point in the history
Co-authored-by: thodson <[email protected]>
  • Loading branch information
elbeejay and thodson-usgs committed Jun 29, 2023
1 parent 37f4190 commit 9ab08a7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion dataretrieval/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def format_datetime(df, date_field, time_field, tz_field):
df['datetime'] = pd.to_datetime(df[date_field] + ' ' +
df[time_field] + ' ' +
df[tz_field],
format='%Y-%m-%d %H:%M',
format='ISO8601',
utc=True)

# if there are any incomplete dates, warn the user
Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
numpy
pandas==1.*
pandas==2.*
scipy
python-dateutil
requests
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy
pandas==1.*
pandas==2.*
python-dateutil
requests

0 comments on commit 9ab08a7

Please sign in to comment.