changeset cdf72430d1b7 in modules/attendance:5.8
details:
https://hg.tryton.org/modules/attendance?cmd=changeset;node=cdf72430d1b7
description:
Correctly convert at using company timezone
issue9925
review333371002
(grafted from 893221ac9f50aa21bc209e59c14bfcfcb7d5893b)
diffstat:
attendance.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 14f0ae3ddfe1 -r cdf72430d1b7 attendance.py
--- a/attendance.py Fri Dec 11 15:44:02 2020 +0100
+++ b/attendance.py Tue Dec 08 17:39:22 2020 +0100
@@ -83,7 +83,7 @@
at = self.at
if pytz and self.company and self.company.timezone:
timezone = pytz.timezone(self.company.timezone)
- at = pytz.utc.localice(self.at, is_dst=None).as_timezone(timezone)
+ at = pytz.utc.localize(self.at, is_dst=None).astimezone(timezone)
return at.date()
def get_rec_name(self, name):