hgtools / Hg.Net

MIT License
2 stars 7 forks source link

Fix Commit timestamp unit test #7

Open dferreyraosi opened 3 years ago

dferreyraosi commented 3 years ago

Fix unit test Commit_WithOverriddenTimestamp_CommitsWithThatTimestamp() to handle time zones.

The commit updates the timestamp variable to explicitly use DateTimeKind.Utc since UTC is what the resulting command line provides to Mercurial. It also converts the resulting log Timestamp to UTC to perform the comparison.