From 0d3176bc3768cbe711aa6485537adc139fe6a4c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Tue, 15 Feb 2022 22:14:16 +0100 Subject: bin/func: Generate shorter date for index --- bin/func | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/func b/bin/func index f8ef010..97688f5 100644 --- a/bin/func +++ b/bin/func @@ -67,9 +67,9 @@ __get_value_date_human() { # 1: filename # Get a human readable date from a file and return a safe string. if [ "${uname}" = "Linux" ]; then - __get_value_date "${1}" | xargs date +"%B %d, %Y" -d + __get_value_date "${1}" | xargs date +"%d %b %Y" -d else - __get_value_date "${1}" | xargs date -j -f "%Y-%m-%d" +"%B %d, %Y" + __get_value_date "${1}" | xargs date -j -f "%Y-%m-%d" +"%d %b %Y" fi } -- cgit v1.2.3