Skip to content

chore: set timezone on all golden file make targets #17533

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

Merged
merged 1 commit into from
Apr 23, 2025
Merged

Conversation

dannykopping
Copy link
Contributor

We replace timestamps in our golden files to keep the values constant.

However, if a non-UTC timezone is used then the timestamp will still be replaced but the whitespace will be messed up (since it was aligned to the original value).

image

Therefore we must force a timezone when generating golden files.

Signed-off-by: Danny Kopping <dannykopping@gmail.com>
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@dannykopping dannykopping enabled auto-merge (squash) April 23, 2025 11:23
@dannykopping dannykopping merged commit b3cc8e5 into main Apr 23, 2025
39 checks passed
@dannykopping dannykopping deleted the dk/utc-or-gtfo branch April 23, 2025 11:26
@github-actions github-actions bot locked and limited conversation to collaborators Apr 23, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants