Files
YaeBlog/YaeBlog.Tests/DateTimeOffsetTests.cs
jackfiled 35f069f40a
All checks were successful
Build blog docker image / Build-Blog-Image (push) Successful in 3m32s
feat: move TOBs to the left of essays.
Fix the word counter to not count the characters in code blocks.

Signed-off-by: jackfiled <xcrenchangjun@outlook.com>
2026-01-10 19:46:06 +08:00

14 lines
351 B
C#

namespace YaeBlog.Tests;
public class DateTimeOffsetTests
{
[Fact]
public void DateTimeOffsetParseTest()
{
const string input = "2026-01-04T16:36:36.5629759+08:00";
DateTimeOffset time = DateTimeOffset.Parse(input);
Assert.Equal("2026年01月04日 16:36:36", time.ToString("yyyy年MM月dd日 HH:mm:ss"));
}
}