Skip to content

Commit

Permalink
Update BlogPost.cs with UtcNow
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasMasche authored Jan 8, 2025
1 parent 0f19dc4 commit d6e577c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LinkDotNet.Blog.Domain/BlogPost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static BlogPost Create(
throw new InvalidOperationException("Can't schedule publish date if the blog post is already published.");
}

var blogPostUpdateDate = scheduledPublishDate ?? updatedDate ?? DateTime.Now;
var blogPostUpdateDate = scheduledPublishDate ?? updatedDate ?? DateTime.UtcNow;

var blogPost = new BlogPost
{
Expand Down

0 comments on commit d6e577c

Please sign in to comment.