Skip to main content
September 16, 2024
Question

Show a constant timezone to every user

  • September 16, 2024
  • 3 replies
  • 0 views

Hi Everyone,

I have a situation, i want to show the a constant timezone to every user no matter user is from USA, Canada or india, every user should see a constant date and time ,

No matter user changes his timezone in appian setting , timzzone should be remain same, changes in timezone in appian setting should not impact interface setted timezone,

For exmaple:

In the I created a record at 13 Sept 2024 12:11 AM IST ,

but i want to show on the inferface 12 Sept 2024 11:41 PDT,

i implement a code when i set my timezone in appian setting as India Standard Time (IST) but when i change my time to PST in appian setting it impacts on interface as well 

text(
todatetime(
gmt(
text(
gmt(fv!row.createdOn, "750"),
"mm/dd/yyyy hh:mm AM/PM"
),
)
),
"MM/dd/YYYY HH:MM AM/PM"
)

3 replies

somasundaram.d
September 16, 2024

Please try this

a!localVariables(
local!time:now(),
text(gmt(local!time),"mm/dd/yyyy hh:mm AM/PM"
)
)

The gmt(local!time) value for different timezone were

Pacific Time - 9/16/2024 2:45 PM PDT

Easter Time - 9/16/2024 2:45 PM EDT

Indian Standard Time - 9/16/2024 2:45 PM GMT+05:30

konduruc733182
September 16, 2024
i implement a code when i set my timezone in appian setting as India Standard Time (IST) but when i change my time to PST in appian setting it impacts on interface as well

What do you mean by this? You mean in the designer?

anyway the below code should resolve your UI level issue

text(local(gmt(ri!date), "PST"), "mm/dd/yyyy hh:mm AM/PM")

sarathkumr268295
September 17, 2024

There will be a setting in admin console called internationalization. You can select the timezone and select the always override user's selected time zone