Skip to content

Commit

Permalink
fixed determination of dst (daylight saving time)
Browse files Browse the repository at this point in the history
  • Loading branch information
drfho committed Feb 6, 2025
1 parent e8fe6cd commit d0b7ea6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Products/zms/_objattrs.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def isActive(self, REQUEST):
obj_vers = self.getObjVersion(REQUEST)
obj_attrs = self.getObjAttrs()
now = datetime.datetime.now()
dst = time.daylight == 1 and 1 or 0 # Daylight saving time.
dst = time.localtime().tm_isdst == 1 and 1 or 0 # Daylight saving time.
for key in ['active', 'attr_active_start', 'attr_active_end']:
if key in obj_attrs:
obj_attr = obj_attrs[key]
Expand Down

0 comments on commit d0b7ea6

Please sign in to comment.