How to make DateTime parsing consistent? #786
-
Hi, Situation:
When I run this on my machine I get a datetime formatted by my local machine (01.01.2020), but on our build agent I get another (en-us) datetime format (2020/01/01). Some other sources stated, that I can set
but I don't have a property DateTimeZoneHandling to begin with. Furthermore I don't think, that this would solve my formatting issue. Is there ANY possibility to tell the converter to be culture invariant? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
i cant reproduce this. can you submit a failing test as a PullRequest. Note that the date format Very is hard coded to is eg
so i need a repro to understand how you are getting |
Beta Was this translation helpful? Give feedback.
i cant reproduce this. can you submit a failing test as a PullRequest.
Note that the date format Very is hard coded to is
yyyy-MM-dd
eg
https://github.com/VerifyTests/Verify/blob/main/src/Verify.Tests/Serialization/SerializationTests.DontScrubDateTimes.verified.txt
so i need a repro to understand how you are getting
01.01.2020
or2020/01/01