Hi all, I am building an app which lets users add meetings and add them to the outlook calendar with microsoft graph rest api. When creating an event with the following times (Picture 1), the created outlook event is at the same time (Picture 2). However, in the database another time gets saved (Picture 3). The times are localized and the timezone in the rest api requests is my current one. Any ideas why this could happen and how I could fix this? Picutre 1: Picture 2: Picture 3: Thanks
The times are always stored in UTC in the database. They are displayed in Mendix Apps as per the server timezone settings. Even in Outlook, its displayed as per User timezone settings.
Hope this helps,
To add to Shekhar’s answer, take a look at how the date attribute is instantiated in the domain model:
To display the date in the User’s localized timezone, the date must be set to Localized > Yes.