[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Timezone handling problem in icalendar.el/icalendar-import-*
From: |
Christian Lynbech |
Subject: |
Re: Timezone handling problem in icalendar.el/icalendar-import-* |
Date: |
Wed, 16 Dec 2009 19:38:57 +0100 |
User-agent: |
Gnus/5.110011 (No Gnus v0.11) Emacs/22.3 (darwin) |
>>>>> "Andreas" == Andreas Schwab <address@hidden> writes:
Andreas> "Christian" <address@hidden> writes:
>> (format-time-string "%Y-%m-%dT%T%z" (encode-time 0 30 11 16 12 2009
>> "(STD?)-02:00(DST?)-03:00,M3.-1.0/03:00:00,M10.-1.0/04:00:00"))
>> ;=> "2009-12-16T09:30:00+0100"
Andreas> This timezone string is clearly outside of the specs. The timezone
Andreas> names shall consist only of alphabetic characters in the portable
Andreas> character set.
I assume you refer to the use of "(STD?)" and "(DST?)". It actually
works since it appears that mktime() will assume GMT if it encounters
something it does not understand, but that is admittedly not a wise
thing to count on, Why icalendar didn't just use "GMT" or "UTC" is not
clear to me.
I can also report that when using emacs version "22.3.1" on Mac OSX 10.5.8,
one also needs to replace the "-1" with "5".
------------------------+-----------------------------------------------------
Christian Lynbech | christian #\@ defun #\. dk
------------------------+-----------------------------------------------------
Hit the philistines three times over the head with the Elisp reference manual.
- address@hidden (Michael A. Petonic)
- Timezone handling problem in icalendar.el/icalendar-import-*, Christian, 2009/12/16
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Andreas Schwab, 2009/12/16
- Re: Timezone handling problem in icalendar.el/icalendar-import-*,
Christian Lynbech <=
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Ulf Jasper, 2009/12/16
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Christian, 2009/12/17
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Ulf Jasper, 2009/12/17
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Christian, 2009/12/18
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Ulf Jasper, 2009/12/18
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Christian Lynbech, 2009/12/18
- Re: Timezone handling problem in icalendar.el/icalendar-import-*, Ulf Jasper, 2009/12/19