[Pythonmac-SIG] Problem with iCal and appscript

Daniel Lord daniel at brightfire.org
Sat Apr 17 22:51:40 EDT 2004


HAS's appscript is a great achievement and very useful but I have 
noticed a problem on my system with the demo program from his site:

  the datetime object is shifted by -12 hours when added to iCal. The 
demo puts the entry "First pants, then shoes" in the Calendar on the 
16th at 1200 rather than on the 17th, (presumably at 0000).
I tried a few different configurations of dates and all were shifted by 
12 hours

I am in PDT (GMT +8) so it isn't a UTC issue, otherwise the shift would 
be 8 not 12. I do use a 24-hour clock in my preferences and an 
international time/date setting and thought that may be the problem. 
But, setting the defaults didn't fix this. The Python datetime library 
seems to work correctly. This is with iCal 1.5.2. Perhaps something 
changed from version 1.0 that is interpreting the hour field 
differently? Anybody have an idea?




More information about the Pythonmac-SIG mailing list