Skip to content

Commit

Permalink
Use datetime.timezone.utc instead of datetime.UTC alias function (ufs…
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherwharrop-noaa authored May 15, 2024
1 parent e3ce62e commit eb3c6be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/uwtools/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ def _add_arg_config_file(group: Group, required: bool = False) -> None:


def _add_arg_cycle(group: Group) -> None:
offset = dt.timedelta(hours=(dt.datetime.now(dt.UTC).hour // 6) * 6)
offset = dt.timedelta(hours=(dt.datetime.now(dt.timezone.utc).hour // 6) * 6)
cycle = dt.datetime.combine(dt.date.today(), dt.datetime.min.time()) + offset
group.add_argument(
_switch(STR.cycle),
Expand Down

0 comments on commit eb3c6be

Please sign in to comment.