skwaler Posted September 24, 2021 Report Share Posted September 24, 2021 I am storing timestamps/datetime in UTC. I would like user when viewing the timestamp in datapage to see this time converting into their timezome Either by looking up timezone preference from a users table or setting timezone view from a page item. Is there anyway to do this? Quote Link to comment Share on other sites More sharing options...
0 PotatoMato Posted September 24, 2021 Report Share Posted September 24, 2021 Hi @skwaler You may achieve it using localization: https://howto.caspio.com/localizations/localizations/ -Potato Quote Link to comment Share on other sites More sharing options...
0 PotatoMato Posted September 24, 2021 Report Share Posted September 24, 2021 You can also refer to this forum post: Quote Link to comment Share on other sites More sharing options...
0 skwaler Posted September 25, 2021 Author Report Share Posted September 25, 2021 @PotatoMato I don't want the timezone used to store the value to change. I always want to store at UTC. But when reviewing the value in a datapage, i want to show the time in the timezone of user that is viewing the record. I would imagine we need to use some JavaScript to convert the a chosen timezone? Quote Link to comment Share on other sites More sharing options...
0 Talbot Posted September 27, 2021 Report Share Posted September 27, 2021 With Time Zones and Local Time, we use Google Maps to retrieve the Local Time and Time Zone and UTC Offset and then if necessary we use or display that local time. Then no need to do ongoing data maintenance of Time Zones, etc. Works well I have the code: dtalbot@workmovr.com Quote Link to comment Share on other sites More sharing options...
0 Kurumi Posted September 27, 2021 Report Share Posted September 27, 2021 Hi @skwaler - You are correct. You may check these links for reference:https://www.delftstack.com/howto/javascript/initialize-javascript-date-to-a-particular-timezone/https://techbrij.com/date-time-timezone-javascript-select Quote Link to comment Share on other sites More sharing options...
Question
skwaler
I am storing timestamps/datetime in UTC.
I would like user when viewing the timestamp in datapage to see this time converting into their timezome
Either by looking up timezone preference from a users table or setting timezone view from a page item.
Is there anyway to do this?
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.