From 5d9b96f4a89e2bd60759456302736f63aa663682 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 23 Nov 2025 09:13:15 +0000 Subject: [PATCH 1/2] Initial plan From 50bc104f716b6ea117f271981aa22ad8fc507b54 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 23 Nov 2025 09:20:15 +0000 Subject: [PATCH 2/2] Fix RssFeedControllerTests to use UTC dates for Windows compatibility Co-authored-by: linkdotnet <26365461+linkdotnet@users.noreply.github.com> --- .../Web/Controller/RssFeedControllerTests.cs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs b/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs index a780490e..5fff1467 100644 --- a/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs +++ b/tests/LinkDotNet.Blog.IntegrationTests/Web/Controller/RssFeedControllerTests.cs @@ -37,14 +37,14 @@ public async Task ShouldCreateRssFeed() .WithTitle("1") .WithShortDescription("Short 1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithShortDescription("**Short 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2); @@ -115,14 +115,14 @@ public async Task ShouldReturnFullContentIfRequested() .WithTitle("1") .WithContent("Content1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithContent("**Content 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2); @@ -193,14 +193,14 @@ public async Task ShouldReturnNPostsIfRequested() .WithTitle("1") .WithShortDescription("Short 1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithContent("**Content 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2); @@ -261,14 +261,14 @@ public async Task ShouldRespectBlogPostsPerPage() .WithTitle("1") .WithShortDescription("Short 1") .WithPreviewImageUrl("preview1") - .WithUpdatedDate(new DateTime(2022, 5, 1)) + .WithUpdatedDate(new DateTime(2022, 5, 1, 0, 0, 0, DateTimeKind.Utc)) .WithTags("C#", ".NET") .Build(); var blogPost2 = new BlogPostBuilder() .WithTitle("2") .WithContent("**Content 2**") .WithPreviewImageUrl("preview2") - .WithUpdatedDate(new DateTime(2022, 6, 1)) + .WithUpdatedDate(new DateTime(2022, 6, 1, 0, 0, 0, DateTimeKind.Utc)) .Build(); await Repository.StoreAsync(blogPost1); await Repository.StoreAsync(blogPost2);