diff options
author | crupest <crupest@outlook.com> | 2020-08-11 17:59:44 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-08-11 17:59:44 +0800 |
commit | 7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47 (patch) | |
tree | 77e56827955f1e84aaa0ccb8d36969818cfc1640 /Timeline.Tests/Helpers/TestClock.cs | |
parent | 4685d69fe965b32438c399a4ad4a3deee9fb0a55 (diff) | |
download | timeline-7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47.tar.gz timeline-7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47.tar.bz2 timeline-7df5e63e8b2eaa5b4f83ee72a32eeedd480cde47.zip |
Post list modified since now consider username change. And make all datetime utc.
Diffstat (limited to 'Timeline.Tests/Helpers/TestClock.cs')
-rw-r--r-- | Timeline.Tests/Helpers/TestClock.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline.Tests/Helpers/TestClock.cs b/Timeline.Tests/Helpers/TestClock.cs index 0cbf236d..ed2d65a6 100644 --- a/Timeline.Tests/Helpers/TestClock.cs +++ b/Timeline.Tests/Helpers/TestClock.cs @@ -12,7 +12,7 @@ namespace Timeline.Tests.Helpers public DateTime GetCurrentTime()
{
- return _currentTime ?? DateTime.Now;
+ return _currentTime ?? DateTime.UtcNow;
}
public void SetCurrentTime(DateTime? mockTime)
@@ -22,7 +22,7 @@ namespace Timeline.Tests.Helpers public DateTime SetMockCurrentTime()
{
- var time = new DateTime(2000, 1, 1, 1, 1, 1);
+ var time = new DateTime(3000, 1, 1, 1, 1, 1, DateTimeKind.Utc);
_currentTime = time;
return time;
}
|