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)
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)