> 2. Fix a bug I encountered: for some reason it's not storing the
>converted timestamps back into the data structure properly. I've added
>some log messages that display the timestamp using
>icaltime_as_ical_string() before and after the conversion, and
>therefore I know that the conversion is happening properly.
Ok, it wasn't a bug, I just didn't quite remember the architecture
correctly. We don't convert to UTC when saving to disk because it isn't a
great idea to munge the original message. We convert to UTC when we load
the data, which means that the updated ical_dezonify.c needed to be
brought over to the WebCit sources as well.
I did so and the two sample events that dothebart posted are now
displaying with the correct start and end time. However, the current code
still has the default timezone hardcoded to "America/New_York" which
obviously needs to be fixed. The TZ environment variable was a good idea,
but it doesn't seem to appear on any of the machines I tested. Pulse had
a good suggestion in prompting the system administrator during install,
and if all else fails I'll do it that way (maybe even provide a per-user
way to override it) but I'd really prefer to auto-detect the server's
timezone so that "it just works."