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

fix: test using utc time #65

Merged
merged 1 commit into from
Jun 19, 2024
Merged

fix: test using utc time #65

merged 1 commit into from
Jun 19, 2024

Conversation

meenzen
Copy link
Contributor

@meenzen meenzen commented Jan 4, 2024

DateTime always defaults to local time and needs to be explicitly converted to UTC.

The tests fail if the system timezone is not set to UTC. Because GitHub Actions use UTC by default this was not caught by CI.

Warning: Do not merge unless this behavior is intended!

I don't quite understand how DateTime conversion works. To me it looks like TimeStampHelper.cs assumes that passed DateTime values are always UTC, which is not the case.

The current implementation might not be sufficient.

DateTime always defaults to local time and needs to be explicitly converted to utc.

Signed-off-by: Samuel Meenzen <samuel@meenzen.net>
@meenzen
Copy link
Contributor Author

meenzen commented Jan 4, 2024

This only fixes the symptoms of the issue so I created #66

@arg0d arg0d merged commit efea2d6 into NordSecurity:main Jun 19, 2024
1 check passed
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.

2 participants