[Time Zone] Get CurrentDateTime in UTC

[Time Zone] Get CurrentDateTime in UTC

  
Forge Component
(9)
Published on 19 Sep (4 days ago) by Justin James
9 votes
Published on 19 Sep (4 days ago) by Justin James

Hi, my server is located in United States and it follows the Los Angeles time zone.I shall not configure the timezone of the server to UTC.But i shall do the calculation to get the UTC.

Does Outsystems has any build in function that is ready to use to get the UTC of current date time where transaction takes places? Or I shall convert the Los Angeles time zone to UTC manually in order to get the time?Is there any sample code on this?

Solution

Hi Johnson,

The Timezone component has an Action that allows you to get the Server time zone, and Actions that help you convert from/to UTC as well, so you can do the calculations yourself. Would that be enough?

Solution

Thanks Jorge.You have help a lot.