Need to Add the Time Zone Date/time Field

san1989
Giga Guru

Hi All,

In the change task there are fields named Planned Start Date and Planned End Date. 

the default display value is like this: 2019-01-19 14:15:00

but the requirement is like they need to see : 2019-01-19 14:15:00 CST.

Is it possible to add the time zone (CST) on the field. 

Please let me know any input on this.

 

Thanks

Santhosh Boppidi.

2 REPLIES 2

asifnoor
Kilo Patron

Hi Santhosh,

If you want this change globally, then you can simply update the system property glide.sys.time_format as HH:mm:ss z and save.

If you want this to affect only for 1 field, write onChange client script, and call a script include which returns the timezone

gs.print(gs.getProperty("glide.sys.default.tz"));

Then you can append this timzeone to your newValue and set it back in the field.

 

Mark correct if this helps.

Then you can append this timzeone to your newValue and set it back in the field. ---> Can you please code how will this be done.. lets assume "start_date" is my Dte/Time field in which i want to append the timezone.