Skip to main content
April 10, 2024
Question

Convert Date time tp different time zone

  • April 10, 2024
  • 3 replies
  • 0 views

Hi there,

I think our Appian site to set as US central time. as the now() function returns "4/10/2024 12:37 PM CDT", if I want to convert it to China time, could anyone here know how to do it?

I tried this, but does not work.

local(now(), "Asia/Shanghai"), it returns: 4/10/2024 8:37 PM CDT

but it should be "4/11/2024 1:37 AM"

anyone can help?

Regards,

Lin

3 replies

stefanhelzle0001
Brainy
April 10, 2024
linp0001Author
April 10, 2024

thanks, I will take a look.

karthikk538
April 12, 2024

Hi

Can i know what's the exact problem you are trying to solve? 

If the user want to view the time zone in their format as the DB is anyway will be in GMT, ask them to change in profile settings.

If this is something at a backend ,  the mentioned blog would help.