The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events