Skip to content

Commit

Permalink
fix timezone bug in event.getStartEpoch and event.getEndEpoch
Browse files Browse the repository at this point in the history
except for possible small mistake in sorting order, I didn't find any bad result from this bug
  • Loading branch information
ilius committed Mar 18, 2021
1 parent f4aa34b commit 111b4ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scal3/event_lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand All @@ -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()
Expand Down

0 comments on commit 111b4ae

Please sign in to comment.