Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dates/Times in UTC? #114

Open
cbat98 opened this issue Oct 3, 2024 · 0 comments
Open

Dates/Times in UTC? #114

cbat98 opened this issue Oct 3, 2024 · 0 comments

Comments

@cbat98
Copy link

cbat98 commented Oct 3, 2024

Hi, I'm not a Go developer by any means, but whilst browsing the AZDO REST API documentation, I noticed that all of the datetimes that it returns are always in UTC.

Here in the UK, we spend half of the year in daylight savings time (BST timezone rather than GMT), which puts us an hour ahead of UTC. This means that the time.Now() function in Go will be sending local time rather than UTC. I'm not sure if formatting the time to the correct specification (minTime.Format(time.RFC3339)) is supposed to alter the time in the request, but it doesn't seem to be doing so according to my AZDO IIS logs.

Can someone advise whether UTC is or is not being sent, and if it should be / should not be? I'm happy to contribute some code to augment the time.Now() calls if necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant