forked from nyancrimew/maia.crimew.gay
display pub/update time where applicable
This commit is contained in:
parent
dbf8925c2f
commit
8ceeaf9599
2 changed files with 9 additions and 2 deletions
|
@ -44,6 +44,13 @@ module.exports = function (eleventyConfig) {
|
||||||
const month = formatPart({ month: "short" }, date);
|
const month = formatPart({ month: "short" }, date);
|
||||||
const day = formatPart({ day: "numeric" }, date);
|
const day = formatPart({ day: "numeric" }, date);
|
||||||
const year = formatPart({ year: "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}`;
|
return `${month} ${day}, ${year}`;
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
title: "#FuckStalkerware pt. 2 - SpyHide couldnt hide forever"
|
title: "#FuckStalkerware pt. 2 - SpyHide couldnt hide forever"
|
||||||
date: 2023-07-24
|
date: 2023-07-24T18:17:00+2
|
||||||
date_changed: 2023-07-24
|
changed_date: 2023-07-24T22:12:00+2
|
||||||
description: "and once again it was way too easy"
|
description: "and once again it was way too easy"
|
||||||
feature_image: /img/posts/fuckstalkerware-2/cover.jpg
|
feature_image: /img/posts/fuckstalkerware-2/cover.jpg
|
||||||
feature_alt: "a glitchy edited screenshot of the SpyHide dashboard"
|
feature_alt: "a glitchy edited screenshot of the SpyHide dashboard"
|
||||||
|
|
Loading…
Reference in a new issue