638
Views
6
Comments
Solved
Date time conversion from one timezone to another
Application Type
Reactive

Hi,

We need to receive date time and timezone from user and convert to UTC. For example, we need to convert an input such as 'February 02,2023 18:49:00' and timezone region 'America/Los_Angeles' to corresponding UTC time. We used javascript to do this. But the problem with our method is, we have the time offsets(eg:GMT+05:30) for each of the regions saved in our DB and we are using that for the conversion. This can lead to issues related to daylight savings. Is there a way to overcome this issue? Though we tried a lot to find a javascript api that would return the supported regions along with their offsets, we could get only supported regions.

Thank You,

Radhika

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution
2023-02-13 15-34-45
BabyBear

Hi This might help you

https://www.outsystems.com/forge/component-overview/500/time-zone

2022-02-20 02-44-30
Radhika K P

Hi,

Thanks for the reply. We wanted to try the component as we thought it could solve our problem. But we need a solution compatible with reactive application whereas this component was traditional. 

Thank You,

Radhika

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution
2023-02-13 15-34-45
BabyBear

My bad didn't notice it was for traditional. But Kilian's comment should help you 

2022-02-20 02-44-30
Radhika K P

Thanks Kilian. We had evaluated that as well. But, my bad, I tried the 'Try Now' option and it was rendering screen differently with a different functionality which was not useful for us. Installing the demo and trying it out shows the options which are useful for our scenario. Only issue is it's using 'moment' library. We had evaluated that option but dropped it as moment documentation mentioned that it's under maintenance and encouraged to use other libraries. But looks like that is the only option available right now

UserImage.jpg
Alexandre Yip

Hi Radhika K.P,

Check out these ones

https://www.outsystems.com/forge/component-overview/2199/timezonereactiveutils

https://www.outsystems.com/forge/component-overview/11949/timezones-converter


Hope that it helps you,

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