Skip to content

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

mnieto added 2 commits May 12, 2023 20:33
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 enabled auto-merge (squash) May 13, 2023 13:56
@SebastianSchuetze SebastianSchuetze merged commit bf8f488 into MethodsAndPractices:trunk May 13, 2023
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