[uf-discuss] hCalendar Implementation

brian suda brian.suda at gmail.com
Fri Jan 13 17:26:47 PST 2006


It is BEST to just mark-up in UTC, it saves X2V from converting to UTC
and possibly getting it wrong! X2V is written in XSLT which does NOT
have great support for maths or dates, so i am doing ALOT of string
manipulations, so i can't 100% say that any local date will be converted
to UTC correctly - in all the testing so far it has, but if anyone finds
an exception please let me know.

Also, be aware that DTEND is NOT inclusive, so if you want an event to
end on the 20th, you need to either explictly say 2006-01-20T11:59:59Z
(using minutes and seconds) or actually add a day to be 2006-01-21, it
is not intuitive that you want to to end actually BEFORE the 21st. This
is an issue with iCalendar, NOT hCalendar. The hCalendar examples
page[1] NOTE 5 has further information about this.

-brian

[1] - http://microformats.org/wiki/hcalendar#Example

Tim White wrote:

>Ah, thank you Brian.
>
>In a nutshell then:
>1) Mark up local time
>2) X2V converts to Universal GMT time
>3) Local app corrects time to Local time
>
>Brilliant. 
>
>I'll work on this next week then.
>
>Thanks all.
>
>Tim
>
>--- brian suda <brian.suda at gmail.com> wrote:
>  
>
>>X2V will convert a ISO time with Timezone to a UTC time, that mean
>>    
>>
>that
>  
>
>>it is UNIVERSAL based on GMT. So your calendaring application (like
>>apple iCal) has your LOCAL timezone and will adjust the event time
>>according to your local view. 
>>    
>>
>
>  
>
>>So i think to answer your question, yes X2V will download the file to
>>a
>>UTC date-time and your LOCAL application should adjust it to your
>>LOCAL
>>timezone.
>>
>>    
>>
>
>
>__________________________________________________
>Do You Yahoo!?
>Tired of spam?  Yahoo! Mail has the best spam protection around 
>http://mail.yahoo.com 
>_______________________________________________
>microformats-discuss mailing list
>microformats-discuss at microformats.org
>http://microformats.org/mailman/listinfo/microformats-discuss
>
>  
>



More information about the microformats-discuss mailing list