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
If you bothered to search the Forge yourself, you'd encounter the Reactive version.
Hi This might help you
https://www.outsystems.com/forge/component-overview/500/time-zone
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.
My bad didn't notice it was for traditional. But Kilian's comment should help you
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
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,