Permalink
Browse files

fix UTC handling

git-svn-id: svn://svn.freevo.org/freevo/trunk/tvserver@11224 cc3e1ea1-1e01-0410-8d68-8b121e83a9d5
  • Loading branch information...
1 parent 4548d13 commit b50c65856455191ee782299eefc4f076fbd969f4 @Dischi Dischi committed Dec 13, 2008
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/scheduler/recording.py
@@ -67,7 +67,9 @@ def _time_int2str(i):
time must be in UTC
"""
adjust = time.timezone
- if time.daylight:
+ # FIXME: maybe cache this value, maybe use i and not time.time()
+ # time.daylight does not do what we want
+ if time.localtime(time.time())[8]:
adjust = time.altzone
s = time.localtime(i - adjust)
if adjust < 0:

0 comments on commit b50c658

Please sign in to comment.