From 95ba4474a64cddfc35c80bc2f00732ef50777d87 Mon Sep 17 00:00:00 2001 From: Jason Youzwak Date: Sat, 27 Feb 2021 11:29:55 -0500 Subject: [PATCH] Resolve Issue #407: Migrate to arrow 1.0.0 - cli.py: change "date.tzinfo = tz.tzlocal()" to "date.replace(tzinfo=tz.tzlocal())" --- watson/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/watson/cli.py b/watson/cli.py index 34de207d..494d5803 100644 --- a/watson/cli.py +++ b/watson/cli.py @@ -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":