changeset 893221ac9f50 in modules/attendance:default
details:
https://hg.tryton.org/modules/attendance?cmd=changeset;node=893221ac9f50
description:
Correctly convert at using company timezone
issue9925
review333371002
diffstat:
attendance.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 8ff1db4c0397 -r 893221ac9f50 attendance.py
--- a/attendance.py Sat Dec 05 15:10:25 2020 +0000
+++ 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):