aboutsummaryrefslogtreecommitdiff
path: root/Timeline.Tests/Helpers/TestClock.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-08-11 17:59:44 +0800
committercrupest <crupest@outlook.com>2020-08-11 17:59:44 +0800
commitd447950255e39a00a16466d7fe6e6d42a7c91eea (patch)
treee5627e37430adff1dff17d0d27976798e1ed4e0b /Timeline.Tests/Helpers/TestClock.cs
parentef734ef7e819bb6aa038e435e8468b75caba20a4 (diff)
downloadtimeline-d447950255e39a00a16466d7fe6e6d42a7c91eea.tar.gz
timeline-d447950255e39a00a16466d7fe6e6d42a7c91eea.tar.bz2
timeline-d447950255e39a00a16466d7fe6e6d42a7c91eea.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.cs4
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;
}