fix: 0-pad Published properties

This commit is contained in:
Oliver Booth 2023-08-10 22:53:15 +01:00
parent d6c24d80c1
commit 9d46d6495e
Signed by: oliverbooth
GPG Key ID: 725DB725A0D9EE61
1 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
using Humanizer;
using Humanizer;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Primitives;
using OliverBooth.Data.Blog;
@ -50,9 +50,9 @@ public sealed class BlogApiController : ControllerBase
url = Url.Page("/Blog/Article",
new
{
year = post.Published.Year,
month = post.Published.Month,
day = post.Published.Day,
year = post.Published.ToString("yyyy"),
month = post.Published.ToString("MM"),
day = post.Published.ToString("dd"),
slug = post.Slug
})
}));