How can i get the date & time according to user timezone for logged work through API

hvb1kor
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 26, 2024

Consider below scenario

UserA is in timezone GMT+5.30

UserB is in timezone GMT+0.0

UserC is in timezone GMT+10.0

 

UserB is collecting the logged effort and storing in DB through API. 

Now how can UserB can get the logged effort through API for UserA timezone?

 

Issue is, due to change in timezones dates are getting differed. 

1 answer

0 votes
Bill Sheboy
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.
July 26, 2024

Hi @hvb1kor -- Welcome to the Atlassian Community!

There appears to be a time zone attribute in the worklog endpoint results: https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-worklogs/#api-rest-api-3-issue-issueidorkey-worklog-get

Did you check if that value is accurate for the different logs requested?

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events