Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
events: Fill ics calendar with TZ-aware datetimes
We filled the ics calendar used to produce the ics output with naive datetime specifications without a tiemzone. The ics calendar assument UTC and so the times of the exprted ICS calender were off. The database doesn't containt datetimes, but seperate dates and times which also don't have timezone information. The times are assumend to be the timezone of the server (TIME_ZONE setting in config/settings/base.py). Use astimezone() from pytz library to add time zone information to datetime values handed to the ICS calendar. Acked-By: schrader@molgen.mpg.de
- Loading branch information