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

Ensure vendors use UTC timezone for sources #16

Merged
merged 1 commit into from
Mar 4, 2024

Conversation

kasperg
Copy link
Contributor

@kasperg kasperg commented Mar 4, 2024

When the image validator service tries to determine if a cover image has been updated it tries to compare last-modified values for source and image.

The default image validator will use UTC by default for images but sources are created with whatever timezone is configured in the environment. If these do not match then images will be considered updated even though they are not.

To ensure that sources are generated with the same timezone no matter what has been configured in the environment we hardcode source dates to also use UTC.

An alternate approach would be to make it a configurable variable but that would be a more complex change.

When the image validator service tries to determine if a cover image
has been updated it tries to compare last-modified values for source
and image.

The default image validator will use UTC by default for images but
sources are created with whatever timezone is configured in the
environment. If these do not match then images will be considered
updated even though they are not.

To ensure that sources are generated with the same timezone no matter
what has been configured in the environment we hardcode source dates
to also use UTC.

An alternate approach would be to make it a configurable variable
but that would be a more complex change.
@kasperg kasperg merged commit 932f6d4 into develop Mar 4, 2024
12 checks passed
@kasperg kasperg deleted the ensure-utc-source-dates branch March 4, 2024 17:13
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.

1 participant