Re: Review of Primer part 3...

On 6/25/07, Danny Ayers <danny.ayers@gmail.com> wrote:
> Hotel review example ok except (bizarrely) the dates are converted
> from e.g. "2006-01-29T19:12:33Z" to "20060129191233Z".

--- this is an issue with ISO dates in the iCalendar spec. All dates
in the .ics iCalendar format need to be ISO dates without the '-'
(hypen) or ':' (colon).

from RFC 2445[1]:
...The format for the value type is expressed as the [ISO
   8601] complete representation, basic format for a calendar date. The
   textual format specifies a four-digit year, two-digit month, and
   two-digit day of the month. There are no separator characters between
   the year, month and day component text.

Therefore, the XSLT code simply strips any offending characters. The
date is still a valid ISO data, it has just been normalized. Infact,
if there was a timezone, it would probably also convert the date to
UTC.

If this is a problem, i can easily comment out the line that strips '-' and ':'?

-brian

[1] - http://www.ietf.org/rfc/rfc2445.txt

-- 
brian suda
http://suda.co.uk

Received on Tuesday, 26 June 2007 14:08:01 UTC