Adding users time zone to additional comments on incident

servicenow_devo
Tera Expert

Hi, I was having facing an issue with my platform using with my team.

We were having a old platform where users where getting email notification and in the notification comments added time is showing as users time zone.

 

But when old platform is migrated to new, it seems that comments added time is showing as PST timing which might be time of system.

I have checked all business rules and every thing is same from old platform.

 

So may I know how this can be achieved on new platform which wants to set additional comments time zone as users time zone. Also I have crossed checked all the aspects but not sure how this is not happening after platform migration. 

Thankyou
3 REPLIES 3

Laszlo Balla
ServiceNow Employee
ServiceNow Employee

The timestamp for the comments is reflects when that entry was added to the system, so it will naturally reflect the system's time zone, which is defined in the 'glide.sys.default.tz' system property (docs link). This cannot be based on user preference or other external attributes, it would be very confusing to read comments with timestamps that are in different time zones.

You can either change the above property, or add some scripted logic to add a line that mentions when the comment was posted in the user's time zone (although I would strongly question if this add any value or just further confusion).

Hi thankyou for your response.

So could you please suggest how changes made this property will show timezone of users. Could you please clarify is this requirment can be achieved by system property.

 

If we go adding email script we needs to add to all existing notification which would be a messy work.

I was not clear how can this requirment can be achieved 

Thankyou

The above property changes the default time zone in the system. Users can choose their own time zones, and that's what they will see in the system. So if a comment is added at 09:30 PST, but my time zone is set to CET, I will see it with a time of 18:30. The system will store the value as UTC and that will not change.