Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

fix UTC handling

git-svn-id: svn://svn.freevo.org/freevo/trunk/tvserver@11224 cc3e1ea1-1e01-0410-8d68-8b121e83a9d5
  • Loading branch information...
commit b50c65856455191ee782299eefc4f076fbd969f4 1 parent 4548d13
Dirk Meyer authored December 13, 2008

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. 4  src/scheduler/recording.py
4  src/scheduler/recording.py
@@ -67,7 +67,9 @@ def _time_int2str(i):
67 67
     time must be in UTC
68 68
     """
69 69
     adjust = time.timezone
70  
-    if time.daylight:
  70
+    # FIXME: maybe cache this value, maybe use i and not time.time()
  71
+    # time.daylight does not do what we want
  72
+    if time.localtime(time.time())[8]:
71 73
         adjust = time.altzone
72 74
     s = time.localtime(i - adjust)
73 75
     if adjust < 0:

0 notes on commit b50c658

Please sign in to comment.
Something went wrong with that request. Please try again.