101
Views
5
Comments
Run Timer only for CET time zone
Application Type
Traditional Web
Service Studio Version
11.54.13 (Build 62526)

Hi. 

I have a requirement where I need to implement a timer which must only run based on the CET time zone starting from 7AM CET to 7PM CET. I'm not sure how to achieve this in outsystems. Any help would be very much appreciated.

Regards,
Vijay

UserImage.jpg
Anjali Choudhary

Hi @vijay rajagopal ,

In OutSystems Cloud all servers are set in the UTC time ,That we can not changed.

You can refer this Link,

You can find some solution.

May will help 

Thanks


2022-02-07 08-52-30
Pranav Pandey

Hi vijay rajagopal,

The offset value for CEST is 2 hours so you can generate your time based on that 

7:00 AM to 7:00 PM CEST will be 5:00 AM to 5:00 PM UTC server time, So :

  1. If it is executed automatically then you can generate a scheduled execution time from 5:00 AM to 5:00 PM.
  2. If it is executed manually using the wake function then just add a condition at the start of your timer logic to check if the current DateTime is between 5:00 AM to 5:00 PM server time.
2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Be aware though that the offset with CET is only 1 hour, so assuming 2 hours isn't going to work starting the end of October. There are various assets in the Forge that accurately convert between timezones, which may be a better solution than hardcoding an offset.

2022-02-07 08-52-30
Pranav Pandey

Right, there is daylight saving. You can use the timezone component to get the offset data 

Some of them are below

time-zone

time-zone-service

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Thanks for linking the components, I didn't have time to look them up myself :).

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