[Python-checkins] r42220 - sandbox/trunk/pycon/parse_sched.py

andrew.kuchling python-checkins at python.org
Wed Feb 1 21:04:48 CET 2006


Author: andrew.kuchling
Date: Wed Feb  1 21:04:47 2006
New Revision: 42220

Modified:
   sandbox/trunk/pycon/parse_sched.py
Log:
Correction from Jeffrey Harris of OSAF: remove extra space after DTSTAMP; include VTIMEZONE section, and correct timezone to Central

Modified: sandbox/trunk/pycon/parse_sched.py
==============================================================================
--- sandbox/trunk/pycon/parse_sched.py	(original)
+++ sandbox/trunk/pycon/parse_sched.py	Wed Feb  1 21:04:47 2006
@@ -210,14 +210,14 @@
     date = list(day) + [ int(x) for x in texttime.split(':') ]
     date = datetime.datetime(*date).strftime("%Y%m%dT%H%M00")
     print >>output, 'BEGIN:VEVENT'
-    print >>output, 'DTSTART;TZID=US-Eastern:%s' % date
+    print >>output, 'DTSTART;TZID=US-Central:%s' % date
     if location != '---':
         print >>output, 'LOCATION: %s' % location
     print >>output, 'SUMMARY: %s' % talk_title
     print >>output, 'UID:%s@%s' % (date, 'pycon.org')
     print >>output, 'SEQUENCE:1'
     # XXX what are these two?
-    print >>output, 'DTSTAMP: %s' % date
+    print >>output, 'DTSTAMP:%s' % date
     print >>output, 'DURATION:PT%iM' % duration
     print >>output, 'END:VEVENT\n'
 
@@ -228,6 +228,23 @@
     print >>output, 'CALSCALE:GREGORIAN'
     print >>output, 'X-WR-CALNAME: PyCon 2006 Events'
     print >>output
+    print >>output, """BEGIN:VTIMEZONE
+TZID:US/Central
+LAST-MODIFIED:20060201T013214Z
+BEGIN:STANDARD
+DTSTART:20051030T070000
+TZOFFSETTO:-0600
+TZOFFSETFROM:+0000
+TZNAME:CST
+END:STANDARD
+BEGIN:DAYLIGHT
+DTSTART:20060402T010000
+TZOFFSETTO:-0500
+TZOFFSETFROM:-0600
+TZNAME:CDT
+END:DAYLIGHT
+END:VTIMEZONE"""
+    
     for day in d:
         for talk in d[day]:
             event(day, talk, output)


More information about the Python-checkins mailing list