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

Incorrect scrubbing of DateTime - Unit test #1377

Closed
wants to merge 3 commits into from

Conversation

mithileshz
Copy link

This PR is adding the unit test for #1368 and maybe the potential fix?

The issue is that when the culture is set to en, the long date in src/Verify/Serialization/Scrubbers/DateScrubber_Generated.cs contains one character less than the possible max (the month is 9 instead of 10, 11, or 12). This means that the scrubber does not scrub the first character and therefore returns 1DateTime_1 in the received file.

I was not sure how src/Verify/Serialization/Scrubbers/DateScrubber_Generated.cs was generated so this change was done manually, however I think this change might need to be applied across all the different cultures?

@gregorriegler
Copy link

oh thank you. I was just forking to create this. Now I see that you already did ☺️

@SimonCropp
Copy link
Member

can u try version 28.7.1

@SimonCropp SimonCropp closed this Jan 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants