Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,365,057
Community Members
 
Community Events
168
Community Groups

TimeZone and timezone offset not being set correctly from Automation Rule

I have an automation rule that will add the planned start date of the change request from a custom field into the description field so that we can include this information in approval emails.

What we have noticed lately is some users' timezones are being incorrectly set in the description field. 

Here is the automation smart value we are using to set the planned start date based on the reporter's timezone into the description field

*Planned Start*: {{issue.customfield_10922.convertToTimeZone(issue.reporter.timeZone).format("MMM dd, yyyy h:mm a (O, z)")}} 

At the end of the format, we are setting "0" for the localized time-zone offset and "z" for the time zone name i.e. EDT, CST etc

Lately, this rule is no longer working as expected as the timezone and time zone offset that is being formatted in the description field is not reflecting the reporter's profile settings all the time, i.e. the reporter of the issue is located in China (+8, CST), but the timezone in the description field is showing -4, EDT.

We checked the user's profile and validated their profile time zone is Asia/Hong Kong and their profile visibility is set to our organization.  Our system's default timezone is America/New York which i would think is the defaulted value if the Associates profile timezone is not public.

What other aspects might cause a reporter's timezone to reflect something other than what is set up in their profile?  Any other area's i can look at?  Our accounts are managed if that does make a difference.

 

Here is an example of me changing my TimeZone and it not being reflected in the description correctly.  I am the reporter of this issue

CURRENT PROFILE TIMEZONE

timezone-us-east.png

DESCRIPTION AFTER UPDATE OF START DATE - ACCURATE

DESCRIPTION-US-EAST.png

UPDATED TIMEZONE TO ASIA/HONG KONG

timezone-ASIA-HK.png

DESCRIPTION AFTER UPDATE OF START DATE - INACCURATE EXPECTED  GMT+8, CST

DESCRIPTION-asia-hk.png

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events