#microformats 2016-04-19

2016-04-19 UTC
miklb joined the channel
Vendan, laughinghan and tantek joined the channel
gRegorLove joined the channel
adactio, adactio_, barnabywalters, TallTed and tantek joined the channel
#
tommorris
anyone know if there's been any existing work on doing TZ-aware hCalendar/h-event?
#
aaronpk
I am pretty deliberate in how I handle timezones for h-events
#
aaronpk
not sure what you mean exactly
#
aaronpk
I got it to work well enough that I can import my h-event data as an ics feed to google calendar and apple calendar and it works correctly http://indiewebcamp.com/ICS#IndieWeb_Examples
#
tommorris
ah, will read that
#
tommorris
aaronpk: are you generating the ICS yourself from the raw data or are you parsing the microformats?
#
aaronpk
my data is stored as microformats, i'm generating the ICS from that
#
aaronpk
(stored as microformats vocab in a yaml serialization)
#
tommorris
I'm trying to add iCalendar output for mf2py
#
aaronpk
ah cool
#
tommorris
there's a p-tz property reserved in [[microformats2]]
#
tommorris
wondering if that's for people who want to explicitly set a TZ
#
aaronpk
i've always just done it as timezone value in the date
#
tommorris
e.g. <div class="h-event"><p class="p-tz">Europe/London</p>...
#
aaronpk
oh yeah, iso8601 doesn't let you do named timezones
#
tommorris
I just need a helper function that will handle timezones properly.
#
tommorris
if you were encoding a whole calendar as HTML (because of human readability vs. .ics) named timezones would be quite useful
#
tommorris
interesting. the tz property wasn't for hCalendar but for hCard. so that you could say that a person was in a particular timezone
#
tommorris
and that was done using offsetting rather than timezone naming
miklb joined the channel
#
tantek
right
ben_thatmustbeme joined the channel
#
tommorris
and however much I try, the Mac Calendar app eats up and chews out mf2py's ICS timezone stuff
#
tommorris
my new reaction to the whole thing is to say "a pox on your houses" to iCalendar reader implementations. in the Mac Calendar app, the TZ isn't really exposed. which means it is basically invisible metadata, a likely repository for smells
#
tommorris
humans will get the timezone from context. if it is an event in New York, it'll be in the New York timezone.
ben_thatmustbeme joined the channel
#
aaronpk
tommorris: that only works if you ensure nothing in the process adds an assumed timezone
#
aaronpk
hmm where are my notes on ICS support
#
aaronpk
i did a bunch of experiments to see which particular syntax was supported by apple and google to get the timezones to work right
#
tommorris
yeah, I've just been doing that now. the python iCalendar library has a nasty habit of putting quotemarks around timezones - TZID:"America/Los_Angeles" rather than TZID:America/Los_Angeles which breaks Calendar.app
#
tommorris
also, the TZ database is odd. you'd think that it'd have the capital of Brazil in there, but no. And all the city names are strict ASCII only, no accents or anything
#
aaronpk
Named time zones are weird
#
aaronpk
unfortunately that's the only way to have a consistent time zone identifier for the whole year since lots of places do DST so their offset changes
#
tantek
namedtimezones--
#
Loqi
namedtimezones has -2 karma
#
aaronpk
The problem with offsets is I never remember when the switch is, so if I post an event in the future after DST switch, I usually end up posting it in the current offset and then it's wrong
#
tantek
you could do what Hixie does and mentally use Z
#
aaronpk
That sounds not human friendly
#
Loqi
[@nate_smith] you know shit is getting real on #tildetown when I strap my pink casio f91w set to UTC to my other wrist
#
tantek
don't make me get out my Swatch BEAT watches (yes plural ;) )
#
tommorris
on Wikipedia, all times are UTC. and you can get a little JS gadget that puts the UTC time in the top-right.
#
tommorris
unfortunately, it takes a second or so to initialise, and when it does, it pushes the "Your contributions" link to the left. if you were trying to click that link, you click the "Log out" link instead.
laughinghan joined the channel
#
tommorris
Am thinking that now OS X has JavaScript as an alternative to AppleScript, one could actually create a reasonable test suite for iCalendar compatibility just by opening up the files, plonking them in a test calendar and then inspecting the result.
#
tommorris
edited /icalendar-implementations (-1) "/* contributors */ can't even remember my own username"
(view diff)
gRegorLove and laughinghan joined the channel
#
@MarinoPosadas
HTML 5.1 Incremental Preview: Tabs, XSS, Tables, and Microformats https://dzone.com/articles/html-51-incremental-preview vía @DZone
(twitter.com/_/status/722520903414845446)
KevinMarks joined the channel
laughinghan joined the channel
#
@txtbits
HTML 5.1 Incremental Preview: Tabs, XSS, Tables, and Microformats https://dzone.com/articles/html-51-incremental-preview vía @DZone
(twitter.com/_/status/722552677788475393)
barnabywalters, ben_thatmust and KevinMarks joined the channel