ali-rantakari / icalBuddy

Command-line utility for printing events and tasks from the OS X calendar database.
150 stars 33 forks source link

Timezone handling #3

Open Argon- opened 10 years ago

Argon- commented 10 years ago

In case I don't miss something obvious, the only way to get dates in your local time zone is by using %X and %x or utilize %z to calculate the local time yourself. The latter is a bit inconvenient and the former won't allow you to use your own date/time formatting. Additionally, %X %x are not correct for me^1 (although %z shows the correct time zone offset).

Is it somehow possible to format a date/time yourself, while using local time values by e.g. specifying a timezone beforehand? icalBuddyPrettyPrint.m#L238 passes nil as timezone, but I don't know if that's the only relevant place.

^1 My %z value is currently +0100, but the time printed from both, %X and %H is the same (which is, of course, 1h less than it should)

frozenpandaman commented 10 years ago

Same here—I wish there was a way to manually offset/change the time zone.

jbiatek commented 10 years ago

I'm seeing this too. Reminders are being shown in UTC, not my local time zone.