Skip to content

Commit

Permalink
24 hour format (dotnet#32161)
Browse files Browse the repository at this point in the history
* Update Program.cs

* Update Program.cs

* Update Program.cs
  • Loading branch information
neilboyd authored Nov 7, 2022
1 parent f8e9fbf commit 5b8dec1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
builder.AddJsonConsole(options =>
{
options.IncludeScopes = false;
options.TimestampFormat = "hh:mm:ss ";
options.TimestampFormat = "HH:mm:ss ";
options.JsonWriterOptions = new JsonWriterOptions
{
Indented = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ static void Main()
{
options.IncludeScopes = true;
options.SingleLine = true;
options.TimestampFormat = "hh:mm:ss ";
options.TimestampFormat = "HH:mm:ss ";
}));

ILogger<Program> logger = loggerFactory.CreateLogger<Program>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ static void Main()
builder.AddSystemdConsole(options =>
{
options.IncludeScopes = true;
options.TimestampFormat = "hh:mm:ss ";
options.TimestampFormat = "HH:mm:ss ";
}));

ILogger<Program> logger = loggerFactory.CreateLogger<Program>();
Expand Down

0 comments on commit 5b8dec1

Please sign in to comment.