Showing and setting event date time zones

So @pbauer and @zopyx are both right:

The datetimes are always stored with a timezone. And this is the only valid way to work with dates/datetimes. For recurring dates DST changes need to use the DST associated with the timezone stored with the date, because i.e. in Europe we have different DST boundaries than in US. So, a daily event at 11:00 in Europe would be for some weeks in US at 12 or 10 (depending on) or vice versa.

But the widget/ data converter does not support time zones. It always uses the default timezone

The default timezone is either the timezone of the portal, or if set, the timezone property of the currently logged in user:

So here is work to be done.

For the output of the date it even gets more complex and is really use-case specific, like show no timezone if there is only one, always show stored timezone, re-calculated to current logged in users timezone, recalculate to browser-selected timezone from request-parameter/cookie (there's nothing suitable by default in the request AFAIK) ... and possibly more.

1 Like