From 8ceeaf95991bc26ce52d6dca369915953e18742a Mon Sep 17 00:00:00 2001 From: maia arson crimew Date: Mon, 24 Jul 2023 22:34:41 +0200 Subject: [PATCH] display pub/update time where applicable --- .eleventy.js | 7 +++++++ src/posts/fuckstalkerware-2.md | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index 7a2397f..a3c1ecf 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -44,6 +44,13 @@ module.exports = function (eleventyConfig) { const month = formatPart({ month: "short" }, date); const day = formatPart({ day: "numeric" }, date); const year = formatPart({ year: "numeric" }, date); + const hours = date.getUTCHours(); + const minutes = date.getUTCMinutes(); + + if (hours != 0 && minutes != 0) { + + return `${month} ${day}, ${year} - ${hours}:${minutes} UTC`; + } return `${month} ${day}, ${year}`; }); diff --git a/src/posts/fuckstalkerware-2.md b/src/posts/fuckstalkerware-2.md index 0651ef5..33fb829 100644 --- a/src/posts/fuckstalkerware-2.md +++ b/src/posts/fuckstalkerware-2.md @@ -1,7 +1,7 @@ --- title: "#FuckStalkerware pt. 2 - SpyHide couldnt hide forever" -date: 2023-07-24 -date_changed: 2023-07-24 +date: 2023-07-24T18:17:00+2 +changed_date: 2023-07-24T22:12:00+2 description: "and once again it was way too easy" feature_image: /img/posts/fuckstalkerware-2/cover.jpg feature_alt: "a glitchy edited screenshot of the SpyHide dashboard"