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

Change date location to UTC before formatting #113

Closed
wants to merge 2 commits into from

Conversation

MarkRosemaker
Copy link

For some reason, the time format 2006-01-02T15:04:05.000Z is used instead of the idiomatic time.RFC3339 or time.RFC3339Nano.

This does not work well for different time zones or daylights saving time (playground link).

One solution would be to change the format to time.RFC3339Nano, however there is a risk that the API won't handle the different format.

Instead, we should at least make sure that the time is set to the UTC location.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 38.998% when pulling 8c88f07 on MarkRosemaker:change-to-UTC into 73fb203 on opsgenie:master.

@MarkRosemaker
Copy link
Author

Thanks for the approval, @prakhar-mudaiya !
Since I don't have write access, could you merge the PR for me, please?

@MarkRosemaker
Copy link
Author

@prakhar-mudaiya what is the process to get this merged, please?

@MarkRosemaker MarkRosemaker closed this by deleting the head repository Sep 26, 2024
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

Successfully merging this pull request may close these issues.

3 participants