780
Views
2
Comments
Solved
[Time Zone] Get CurrentDateTime in UTC
Question
time-zone
Reactive icon
Forge asset by André Vieira

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?

2019-09-24 18-41-25
Jorge Martins
 
MVP
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?

UserImage.jpg
Johnson Lim

Thanks Jorge.You have help a lot.

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