Timestamps for comments in customer portal are GMT, need to convert timestamp to user's timezone
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-30-2024 03:45 PM
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