104
Views
2
Comments
Solved
How i do Convert server date/time to my local date/time!?
Application Type
Reactive
Service Studio Version
11.54.56 (Build 63232)

Hi guys... I have the following problem... I have a data time where the time that is being saved in my entity is the time of the servers in Portugal... and I'm in Brazil... so I need to show the date on the screen and just like on the printout (I use ultimatepdf) the time and date in Brazil... however on the screen, where I bring the data with that date via aggregate, it shows the local time and on the printout the server date (even I using in both situations, expressions with the "FormatDatatime" function... unfortunately in the company I cannot add forge elements freely, only those that meet the company's security criteria... If anyone can give me a suggestion... How to implement this in this expression in printing...

2021-05-18 19-42-11
Gabriel Melo
Solution

Hi @Luis Fernando da Silva,

Outsystems end-user applications will convert the date and time to the user time zone. However, this behavior does not occur in the server. To convert the date and time in the server to the user time zone, consider using Time Zone component from Forge.

Source:

OutSystems Cloud and time zones - OutSystems Support 

2024-04-22 20-06-42
Luis Fernando Da Silva

Thanks for the tip... I have a doubt that this same behavior in the end user works in the same case of the final pdf of the screen where I layout the print for the client...

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