Skip to content

Commit

Permalink
feat: Format "Created At (UTC)" column to show second precision
Browse files Browse the repository at this point in the history
  • Loading branch information
rgwood committed Sep 22, 2024
1 parent 2176411 commit 62b1482
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion reitunes-rs/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down

0 comments on commit 62b1482

Please sign in to comment.