Skip to content

Commit

Permalink
Update src/pypromice/qc/github_data_issues.py
Browse files Browse the repository at this point in the history
Co-authored-by: Mads Christian Lund <[email protected]>
  • Loading branch information
BaptisteVandecrux and ladsmund authored Dec 19, 2023
1 parent b3baab8 commit 013a351
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pypromice/qc/github_data_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,8 @@ def adjustData(ds,
adj_info.loc[adj_info.t0.isnull(), "t0"] = pd.to_datetime(ds_out.time.values[0], utc=True)
adj_info.loc[adj_info.t1.isnull(), "t1"] = pd.to_datetime(ds_out.time.values[-1], utc=True)
# making all timestamps timezone naive (compatibility with xarray)
adj_info.t0 = pd.to_datetime(adj_info.t0).dt.tz_localize(None)
adj_info.t0 = pd.to_datetime(adj_info.t0, utc=True).dt.tz_localize(None)
adj_info.t1 = pd.to_datetime(adj_info.t1, utc=True).dt.tz_localize(None)
adj_info.t1 = pd.to_datetime(adj_info.t1).dt.tz_localize(None)

# if "*" is in the variable name then we interpret it as regex
Expand Down

0 comments on commit 013a351

Please sign in to comment.