55
Views
3
Comments
How we can Handle Time Zones and Daylight Saving Time ?
Service Studio Version
11.55.16 (Build 64072)

Hi everyone,

I am working on a reactive application in OutSystems, specifically a Time Tracking Systems where users need to lock a slot in staring of DST week or ending of DST week.

Details:

  • As we all know, the OutSystems server time is in UTC.
  • I want to ensure if users book the slot in starting of DST week or ending of DST week, without having to manually adjust settings it will work according to their time zone (this is universal application).
  • for example, If we are scheduling any meeting from 6 March 2024 to 13 March 2024 or 1 Nov 2024 to 7 Nov 2024 at 11:30AM EST. It will show at 10:30 in the calendar which is 1 hour prier form schedule time.

Questions:

  1. What is the best way to handle this time zone conversion reliably in OutSystems?
  2. How we get the exact time? 


I would appreciate any guidance, sample code, or references to relevant documentation that could help solve this issue efficiently.

Thank you in advance for your help!


2024-12-02 12-15-17
Aravind EONE

Hi Jivendra,

We had a similar requirement to handle Daylight Saving Time (DST) on the server side for validation purposes.

To address this, I developed a .NET extension that accepts the time zone (e.g., Australia/Melbourne) and a date-time value as input parameters. The extension contains logic to accurately calculate the correct DST-adjusted time based on UTC.

This setup allows us to handle both UTC to destination time zone conversions and vice versa.

On the client side, we implemented equivalent logic using JavaScript.

Additionally, in our UI and data model, we’ve separated the Date and Time into distinct fields to simplify handling and improve flexibility.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.