# Bug OP-14696 - .ics calendar object does not account for daylight savings time. loads incorrectly in MS Outlook

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-14696

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 14.1.0 |
| Observed in versions | 13.4.0 |
| Sprint | 14.1.0 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 13.4.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### Before filing a report

*Before you file a report, please ensure you are running the latest version of OpenProject and*   
*have searched for similar bug reports.*

### Steps to reproduce

*Please write down the steps to reproduce. Try to write down all necessary preconditions (what permissions do you have, are other users involved?). Example:*

1.  Login as a user with permissions to manage members in project A
2.  Go to the members page
3.  Click on "Add new member"
4.  Type the following string: "<foo@example.org>"

### What is the buggy behavior?

*Please describe the bug in as much detail as possible. Example:*

I was sent a meeting request by my supervisor containing a .ics calendar file. When I double clicked on it and added it to my Outlook calendar the time was off by an hour. Downloading the file and looking at the contents I know what the problem is. The file I was sent did not define a time zone with daylight savings time offsets, it just named a default time zone. Your .ics files should explicitly define their time zones to facilitate universal compatability.

The existing .ics file contained this: 

*PRODID:icalendar-ruby*  
*CALSCALE:GREGORIAN*  
*METHOD:PUBLISH*  
*BEGIN:VEVENT*  
*DTSTAMP:20240328T120559Z*  
*UID:3@microsoft-365*  
*DTSTART;TZID=America/New\_York:20240405T090000*  
*DTEND;TZID=America/New\_York:20240405T170000*

What it should have contained is something more like this: 

*PRODID:icalendar-ruby*  
*CALSCALE:GREGORIAN*  
*METHOD:PUBLISHBEGIN:VTIMEZONE*  
*TZID:Eastern Standard Time*  
*BEGIN:STANDARD*  
*DTSTART:16011104T020000*  
*RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=11*  
*TZOFFSETFROM:-0400*  
*TZOFFSETTO:-0500*  
*END:STANDARD*  
*BEGIN:DAYLIGHT*  
*DTSTART:16010311T020000*  
*RRULE:FREQ=YEARLY;BYDAY=2SU;BYMONTH=3*  
*TZOFFSETFROM:-0500*  
*TZOFFSETTO:-0400*  
*END:DAYLIGHT*  
*END:VTIMEZONE*  
*BEGIN:VEVENT*  
*DTSTAMP:20240328T120559Z*  
*UID:3@microsoft-365*  
*DTSTART;TZID=Eastern Standard Time:20240405T090000*  
*DTEND;TZID=Eastern Standard Time:20240405T170000*

### What is the expected behavior?

*Describe how the application should behave like. Example:*

1.  The application should invite the new user with the selected role
2.  An email should have been sent to that user

### Important note

*Please note that unless you are a contributor to OpenProject, you can no longer edit this bug report after saving. You can still add new comments, new images and upload attachments though, but updating description or modifying fields will not be possible after saving. Please make sure that all necessary information and attachments are added, and the following attributes are set:*

### **Logs**

*Are there errors in the browser console? (*[*Click here for information on how to open your browser's console*](https://webmasters.stackexchange.com/a/77337)*) For a local installation: Are there relevant logs output by* `_openproject logs_` *(packaged installation) (*[*click here for details*](https://docs.openproject.org/installation-and-operations/operation/monitoring/#show-logs)*) or in a log/production.log or /var/log/openproject/ ? Please attach error output in these log files if applicable*

### Screenshots and other files

*If you have screenshots of the application's bug behavior or other relevant files, please drag them into this place or attach them using the "Files" section.*

### Environment information

*Please check and fill out the following details to help us identify in what versions and distributions of OpenProject the error occurs*

**OpenProject installation type**

- [x] Hosted cloud edition
- [ ] Packaged installation
    - What distribution?
- [ ] Docker All-in-one container
- [ ] Docker-compose installation
- [ ] Other (please specify)

**OpenProject version**

*If you're not running on the cloud edition, please specify the version of OpenProject you're running. Example: v12.1.5*

**Browser**

- [x] Chrome
- [ ] Firefox
- [ ] Safari
- [ ] Mobile Safari
- [ ] Other (please specify)

**Language**

*Please specify the browser language and the language of the OpenProject user for which the bug occurred.*
