View Issue Details

IDProjectCategoryView StatusLast Update
0004710SOGoWeb Calendarpublic2019-03-26 10:25
Reporterpurejava Assigned Toludovic  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionno change required 
Platform[Server] LinuxOSUbuntuOS Version16.04 LTS
Product Version4.0.7 
Summary0004710: TimeZone in web calendar not honored
Description

Hi,

I've installed SOGo and subscribe to different web calendars.
For the calendars from Goggle the events are displayed with the correct time.
For a calendar from a calendarserver.org server (installed on the same machine), all events are one hour off.

All timezone settings for all components involved are set to Europe/Berlin:

  • SOGo conf
  • SOGo user settings in web interface

root@cal ~ # ls -l /etc | grep localtime
lrwxrwxrwx 1 root root 33 Mär 24 08:32 localtime -> /usr/share/zoneinfo/Europe/Berlin

root@cal ~ # dpkg-reconfigure tzdata

Current default time zone: 'Europe/Berlin'
Local time is now: Sun Mar 24 08:58:19 CET 2019.
Universal Time is now: Sun Mar 24 07:58:19 UTC 2019.

Here is an example event:
BEGIN:VCALENDAR
PRODID:-//Inverse inc./SOGo 4.0.7//EN
VERSION:2.0
BEGIN:VEVENT
UID:E5A3E335-F62E-4BC1-AD29-1AC7B3426450
DTSTART;TZID=Europe/Berlin:20190324T101500
DTEND;TZID=Europe/Berlin:20190324T111500
CREATED:20190324T072417Z
DTSTAMP:20190324T072424Z
LAST-MODIFIED:20190324T072424Z
SEQUENCE:0
SUMMARY:Test
TRANSP:OPAQUE
X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC
END:VEVENT
END:VCALENDAR

Thanks.

Kind regards,
Ralph

Additional Information

Ubuntu 18.04.2
SOGo 4.0.7
calendarserver 9.1+dfsg-1

https://snag.gy/TfSGn6.jpg

TagsNo tags attached.

Activities

purejava

purejava

2019-03-24 08:32

reporter  

Test.jpg (85,388 bytes)   
Test.jpg (85,388 bytes)   
ludovic

ludovic

2019-03-25 18:18

administrator   ~0013494

Your event lacks VTIMEZONE definitions so they are broken.

Some app stripped that and likely added X-APPLE-TRAVEL-ADVISORY-BEHAVIOR:AUTOMATIC

purejava

purejava

2019-03-26 07:27

reporter   ~0013495

Thank you for your expertise.

Looking up the VTIMEZONE definitions for calendarserver.org I found out that this is an extension to CalDAV which is enabled by default on the calendarserver.org server.
https://www.calendarserver.org/Timezones.html
https://tools.ietf.org/html/rfc7809

Turning this extension off adds the VTIMEZONE definitions to new events, so that they look like this:

BEGIN:VCALENDAR
PRODID:-//Inverse inc./SOGo 4.0.7//EN
VERSION:2.0
BEGIN:VTIMEZONE
TZID:Europe/Berlin
BEGIN:DAYLIGHT
DTSTART:19810329T020000
RRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU
TZNAME:MESZ
TZOFFSETFROM:+0100
TZOFFSETTO:+0200
END:DAYLIGHT
BEGIN:STANDARD
DTSTART:19961027T030000
RRULE:FREQ=YEARLY;BYMONTH=10;BYDAY=-1SU
TZNAME:MEZ
TZOFFSETFROM:+0200
TZOFFSETTO:+0100
END:STANDARD
END:VTIMEZONE
BEGIN:VEVENT
UID:AAB40EC9-08EE-4199-AE5C-2C5D509A5931
DTSTART;TZID=Europe/Berlin:20190326T060000
DTEND;TZID=Europe/Berlin:20190326T070000
CREATED:20190326T051051Z
DTSTAMP:20190326T051051Z
LAST-MODIFIED:20190326T051051Z
SEQUENCE:0
SUMMARY:Test
TRANSP:OPAQUE
BEGIN:VALARM
ACTION:NONE
TRIGGER;VALUE=DATE-TIME:19760401T005545Z
END:VALARM
BEGIN:VALARM
ACTION:DISPLAY
DESCRIPTION:Erinnerung
TRIGGER:PT0S
UID:40EDC650-6C0A-4735-A938-ED1F0E503C90
X-WR-ALARMUID:40EDC650-6C0A-4735-A938-ED1F0E503C90
END:VALARM
END:VEVENT
END:VCALENDAR

... and get displayed with the correct time in the SOGo web calendar.

Issue History

Date Modified Username Field Change
2019-03-24 08:32 purejava New Issue
2019-03-24 08:32 purejava File Added: Test.jpg
2019-03-25 18:18 ludovic Note Added: 0013494
2019-03-26 07:27 purejava Note Added: 0013495
2019-03-26 10:25 ludovic Status new => closed
2019-03-26 10:25 ludovic Assigned To => ludovic
2019-03-26 10:25 ludovic Resolution open => no change required