diff options
author | crupest <crupest@outlook.com> | 2020-08-11 18:22:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-11 18:22:43 +0800 |
commit | 2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e (patch) | |
tree | 56115decfb5e7e7e96c1d84161d7e7c920ce8cff /Timeline.Tests/IntegratedTests/TimelineTest.cs | |
parent | 06e79c99bbc810f16058b35f1c88c23148bf8e57 (diff) | |
parent | 12b5ecddb47e50c9f4597553a795c68b09acaddb (diff) | |
download | timeline-2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e.tar.gz timeline-2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e.tar.bz2 timeline-2de24db92e892c6e3f18d9f5f05e8f3b7aba5c9e.zip |
Merge pull request #146 from crupest/fix-141
Fix #141 .
Diffstat (limited to 'Timeline.Tests/IntegratedTests/TimelineTest.cs')
-rw-r--r-- | Timeline.Tests/IntegratedTests/TimelineTest.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline.Tests/IntegratedTests/TimelineTest.cs b/Timeline.Tests/IntegratedTests/TimelineTest.cs index 49672f29..16b3c7e4 100644 --- a/Timeline.Tests/IntegratedTests/TimelineTest.cs +++ b/Timeline.Tests/IntegratedTests/TimelineTest.cs @@ -952,7 +952,7 @@ namespace Timeline.Tests.IntegratedTests .Which.Should().NotBeNull().And.BeEquivalentTo(createRes);
}
const string mockContent2 = "bbb";
- var mockTime2 = DateTime.Now.AddDays(-1);
+ var mockTime2 = DateTime.UtcNow.AddDays(-1);
TimelinePostInfo createRes2;
{
var res = await client.PostAsJsonAsync(generator(1, "posts"),
@@ -1009,7 +1009,7 @@ namespace Timeline.Tests.IntegratedTests .Which.Id;
}
- var now = DateTime.Now;
+ var now = DateTime.UtcNow;
var id0 = await CreatePost(now.AddDays(1));
var id1 = await CreatePost(now.AddDays(-1));
var id2 = await CreatePost(now);
|