Add support for user configured timezone settings
Description
Implement timezone adjustment for approval timestamps in the comment history to sync with the user's configured timezone in Jira.
Ensure timestamps update dynamically to reflect the local time specific to each user's settings.
Edit: The same situation is also in the approvals view - approval started time is in different timezone than the user’s configured timezone and other places as well. Renamed the task to adding general support for user timezones. For both Jira and Confluence.
Timezone is set from Atlassian account level, applies to both Jira and Confluence.
After implementation note:
Changes made in following places regarding dates:
(Timezone and locale set based on Atlassian’s account config)
- Approval panel + setting approval expiration
- Approval/Activity views in project/global level and personal level
- Conditions and Delegate views
- Api keys view
- Comments - based on timezone of user who created issue/page
Basically all places showing dates should format it now based on timezone and locale.
(Timezone and locale set based on browser settings)
- Web dashboard + Approval view there
Note: In case of Confluence comments, the timestamps there cannot be dynamically adjusted based on user’s configuration, as the comment is rendered once. But the timestamps in new comments from now on, will mirror user’s timezone.
Accepted criteria
- Approval timestamps in comment history should dynamically match the user's configured timezone in Jira.
- Timestamps must update automatically to reflect changes in the user's timezone settings.