diff options
Diffstat (limited to 'internal/server/templates/index.html')
| -rw-r--r-- | internal/server/templates/index.html | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/internal/server/templates/index.html b/internal/server/templates/index.html index 35f08c1..684819d 100644 --- a/internal/server/templates/index.html +++ b/internal/server/templates/index.html @@ -295,6 +295,19 @@ }); } } + // Convert version tooltip build date to browser timezone + if (data.timestamp && data.timestampLabel) { + const date = new Date(data.timestamp); + const formatted = date.toLocaleDateString('en-US', { year: 'numeric', month: 'short', day: 'numeric' }) + ' ' + + date.toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit', hour12: false }); + if (data.rows) { + data.rows.forEach(function(row) { + if (row.label === data.timestampLabel) { + row.value = formatted; + } + }); + } + } {{end}} let html = '<span class="tooltip-header">' + data.header + '</span>'; |