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 tests that involve dates fail when OS culture has 24 hours format #506

Merged
merged 4 commits into from
May 13, 2023

Conversation

mnieto
Copy link
Contributor

@mnieto mnieto commented Dec 20, 2022

PR Summary

Inside the vsteam-lib.Test project, tests that have Asserts based on date format (i.e. actual.CreatedOn.ToString("M/d/yyyy h:mm:ss tt").) fails when ran in a Windows machine configured with 24h format, for example Spanish.
See: https://stackoverflow.com/q/38976486/777551

Example of error:
image

The solution is to use an invariant culture so tests will be independent of the local configuration

PR Checklist

CHANGELOG.md Outdated Show resolved Hide resolved
Move merge 'fix tests that involve dates fail when OS culture has 24 hours format' to next unpublished version
@mnieto
Copy link
Contributor Author

mnieto commented May 12, 2023

@SebastianSchuetze, can you please review last changes and merge?

@SebastianSchuetze SebastianSchuetze merged commit bf8f488 into MethodsAndPractices:trunk May 13, 2023
8 checks 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.

None yet

2 participants