Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Timestamps for comments in customer portal are GMT, need to convert timestamp to user's timezone

J McMillan
Tera Expert

Hi everyone,

 

We have a requirement to try to update our customer Service Portal widget that displays case comments with timestamps in the user’s/customer’s local time zone rather than the default GMT. We’re using moment.js for time zone conversion, and we’ve added a convertToUserTimeZone function in the client controller that references $window.NOW.user_time_zone to determine the user’s time zone setting. However, we're still seeing the timestamps displayed in GMT. Has anyone implemented a similar dynamic time zone adjustment in their Service Portal widget? Just curious if anyone has encountered similar issues or has recommendations on making this work reliably.

Thanks

0 REPLIES 0