date/time field overrding default time zone

naresh831
Tera Contributor

Hi Friends,

We have a requirement. On change form we have a date/time field. We need to change the default time zone on date/time field.   By default it is accepting in system time zone. But we are creating one field on form, user will input time zone in that field. The date/time field should save and display the value based on the user selected time zone.

Please let me know how to achieve this.

Thanks

Ram

6 REPLIES 6

srinivasthelu
Tera Guru

http://wiki.servicenow.com/index.php?title=Dictionary_Attributes#gsc.tab=0


time_zone_fieldname of field containing the time zoneany date or date/time fieldSpecifies the field in the parent record that contains the reference time zone for this field.

Hi Srinivas,



Thank you for your reply.



I tried this option, but still Date/Time filed is taking system default time zone only.



Below is the attribute I added to Date/Time Field. Please let me know if I need to change anything.





find_real_file.png



Thanks


Ram


Kalaiarasan Pus
Giga Sage

Doesn't a date/time field display value by default based on user time zone?


Hi Kalai,



Right now Date/time field value is displaying based on User time zone. We want to override it with customized field.



Thanks


Ram