From 111b4aec393ce0d38bd0908f629803f0cefd4a8f Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Sat, 6 Apr 2019 13:52:14 +0430 Subject: [PATCH] fix timezone bug in event.getStartEpoch and event.getEndEpoch except for possible small mistake in sorting order, I didn't find any bad result from this bug --- scal3/event_lib.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scal3/event_lib.py b/scal3/event_lib.py index 40c598f14..21397fa12 100644 --- a/scal3/event_lib.py +++ b/scal3/event_lib.py @@ -2179,7 +2179,7 @@ def getStartEpoch(self):## FIXME date, ok = self["date"] if ok: return date.getEpoch() - return getEpochFromJd(self.parent.startJd) + return self.parent.getStartEpoch() def getEndEpoch(self):## FIXME end, ok = self["end"] @@ -2188,7 +2188,7 @@ def getEndEpoch(self):## FIXME date, ok = self["date"] if ok: return date.getEpoch() - return self.getEpochFromJd(self.parent.endJd) + return self.parent.getEndEpoch() def getJd(self): return self.getStartJd()