Skip to content

Commit

Permalink
Resolve Issue TailorDev#407: Migrate to arrow 1.0.0
Browse files Browse the repository at this point in the history
- cli.py: change "date.tzinfo = tz.tzlocal()" to "date.replace(tzinfo=tz.tzlocal())"
  • Loading branch information
veganjay committed Feb 27, 2021
1 parent e9097c5 commit ab61ce0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion watson/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def convert(self, value, param, ctx):
# When we parse a date, we want to parse it in the timezone
# expected by the user, so that midnight is midnight in the local
# timezone, not in UTC. Cf issue #16.
date.tzinfo = tz.tzlocal()
date.replace(tzinfo=tz.tzlocal())
# Add an offset to match the week beginning specified in the
# configuration
if param.name == "week":
Expand Down

0 comments on commit ab61ce0

Please sign in to comment.