From 7a77d08db62f4e079445af25d6bcde7becb2d5bd Mon Sep 17 00:00:00 2001 From: Andy Lulham Date: Thu, 13 Jun 2024 01:25:38 +0100 Subject: [PATCH] Use tweet_created_at timestamp --- output/index.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/output/index.md b/output/index.md index 2c2807d5b..b84a08763 100644 --- a/output/index.md +++ b/output/index.md @@ -8,7 +8,7 @@ Proposed [Twitter (X) community notes](https://x.com/i/communitynotes/download-d - + @@ -83,12 +83,18 @@ Proposed [Twitter (X) community notes](https://x.com/i/communitynotes/download-d }, columns: [ { - data: 'notes', + data: 'tweet_created_at', + defaultContent: '', render: function (data, type, row, meta) { if (type !== 'display') { - return data[0]['created_at']; + return data; + } + if (data) { + dt = luxon.DateTime.fromISO(data).toFormat('d MMM yyyy'); + } else { + dt = 'Unknown'; } - return '' + luxon.DateTime.fromISO(data[0]['created_at']).toFormat('d MMM yyyy') + ''; + return '' + dt + ''; }, searchable: false },
Note createdCreated Tweet Note(s) Reason for note