Skip to content

Commit 37b35d9

Browse files
committed
Add date tooltip
1 parent 7f73dba commit 37b35d9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Aspire.Dashboard/Components/Controls/LogViewer.razor

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
@namespace Aspire.Dashboard.Components
22
@using Aspire.Dashboard.Model
3+
@using Aspire.Dashboard.Utils
4+
@using System.Globalization
35
@inject IJSRuntime JS
46
@implements IAsyncDisposable
57

@@ -17,7 +19,7 @@
1719
@if (context.Timestamp is { } timestamp)
1820
{
1921
hasPrefix = true;
20-
<span class="timestamp">@GetDisplayTimestamp(timestamp)</span>
22+
<span class="timestamp" title="@FormatHelpers.FormatDateTime(TimeProvider, context.Timestamp.Value.UtcDateTime, MillisecondsDisplay.Full, CultureInfo.CurrentCulture)">@GetDisplayTimestamp(timestamp)</span>
2123
}
2224
@if (context.Type == LogEntryType.Error)
2325
{

0 commit comments

Comments
 (0)