Date/time field displaying GMT vs. local date/time

FredrikT
Tera Guru

A newly created Date/Time field defaulting to an existing Date/Time field displays GMT vs. local time zone.  The default of the new field is set to "javascript:current.sys_created_on" but it inserts the date/time as GMT in the new field while sys_created_on maintains local timezone.  Is there a preferred solution?

1 ACCEPTED SOLUTION

FredrikT
Tera Guru

So date is inserted as GMT and one solution is to set the default value to javascript:current.sys_created_on.getDisplayValue(); and both fields appear to match

View solution in original post

3 REPLIES 3

Sukraj Raikhraj
Kilo Sage

The date is always going to save as GMT on SN side. How the system render datetime is either on system configured datetime and the user configured datetime.  

It's quite possible date conversion might have to be put in place when saving data between different timezone.

FredrikT
Tera Guru

What is the difference between the fields then when the record is created and the sys_created_on is displayed as local time?

FredrikT
Tera Guru

So date is inserted as GMT and one solution is to set the default value to javascript:current.sys_created_on.getDisplayValue(); and both fields appear to match