From daec5e20f06a3137d8ba338a091da839afa94ad9 Mon Sep 17 00:00:00 2001 From: ClientCrash <40364569+ClientCrash@users.noreply.github.com> Date: Sat, 15 Jan 2022 12:00:49 +0100 Subject: [PATCH 1/9] added DateUtils --- components/BlogPostCard.vue | 4 +++- mixins/DateUtils.js | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 mixins/DateUtils.js diff --git a/components/BlogPostCard.vue b/components/BlogPostCard.vue index 39a6355a..9f9270a9 100644 --- a/components/BlogPostCard.vue +++ b/components/BlogPostCard.vue @@ -3,7 +3,7 @@ Blog post image
{{ post.title }} - {{ new Date(post.created).toLocaleDateString() }} + {{ getDateWithLZero(new Date(post.created).toLocaleDateString()) }} {{ post.description }}
@@ -15,8 +15,10 @@