Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can Date/Time selections be local timezone based and display that time zone when saved?

Elaine McMillan
Contributor
April 21, 2020

My company like many others is across multiple time zones and I would like for staff to be able to create any tickets in their local time zone but when another looks at the ticket then they see the time/date reflected as per their local time zone or at a minimum they see the timezone saved alongside the date/time contained in the field.

 

Sample -

Ticket Created In UTC+1 Zone so when creating will look like Start Date/Time: 21-Apr-20 14:00

Option 1 - will display Start Date/Time: 21-Apr-20 06:00 (when looked at by person in PST (UTC-8)) 

Option 2- will display Start Date/Time: 21-Apr-20 14:00 UTC+1

 

 

 

1 answer

1 accepted

0 votes
Answer accepted
Mike Rathwell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 21, 2020

Hi @Elaine McMillan ,

Jira does that kind of thing automagically. The system timezone will be UTC (and is how I run mine) with the display of dates and times offset automatically by the viewing user's browser timezone. 

If you need to see both or other types of information (like a field showing the TZ something was created/etc in) you could use Groovy ( getComponent(TimeZoneManager).getLoggedInUserTimeZone() ) with either JMWE or ScriptRunner extensions.

That said, if all you need is for users to see dates as captured by Jira, it does that and much simpler to not have to manage some extra effort.

Suggest an answer

Log in or Sign up to answer