From 62b148256c7b827e09d746ce3c95a87949ddd8ab Mon Sep 17 00:00:00 2001 From: "Reilly Wood (aider)" Date: Sun, 22 Sep 2024 13:54:03 -0700 Subject: [PATCH] feat: Format "Created At (UTC)" column to show second precision --- reitunes-rs/templates/index.html | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/reitunes-rs/templates/index.html b/reitunes-rs/templates/index.html index 5751fef..5bc9558 100644 --- a/reitunes-rs/templates/index.html +++ b/reitunes-rs/templates/index.html @@ -124,7 +124,14 @@ { title: "Album", field: "album", editor: "input", width: "10%" }, { title: "Play Count", field: "play_count", sorter: "number" }, { title: "Bookmarks", field: "bookmarks", formatter: bookmarkFormatter, width: "15%" }, - { title: "Created At (UTC)", field: "created_time_utc" }, + { + title: "Created At (UTC)", + field: "created_time_utc", + formatter: function(cell, formatterParams, onRendered) { + // strip off the milliseconds+nanoseconds + return cell.getValue().split('.')[0]; + } + }, ], initialSort: [