Quantcast
Channel: OutSystems Community
Viewing all articles
Browse latest Browse all 1476385

[Forums] Server time date does not match my local time

$
0
0

Justin Babel wrote:

Since you do not have access to the servers, and already have the data stored in the DB under the other time zone. I would suggest using the TimeZones component and using the action ConvertFromTimeZone (converts datetime from source time zone to destination time zone) when displaying a date/time to the user on the UI. 

You can wrap this action with the desired time zones, just passing in the date/time so you do not have to worry about passing the time zone parameters to that action every time you call it, rather just pass in a date/time and return a date/time.

So you would still store the data as the other time zone, but display it in the desired time zone (EST or whatever).

Let me know if this helps,

Justin 


Action ConvertFromTimeZone requires three mandatory inputs 1.Date 2.Source time zone 3.Destination time zone

you said not worry about passing time zone parameters how it is possible? 



Viewing all articles
Browse latest Browse all 1476385

Trending Articles