aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Gonçalves <me@rgoncalves.se>2022-02-15 22:14:16 +0100
committerRomain Gonçalves <me@rgoncalves.se>2022-02-15 22:14:16 +0100
commit0d3176bc3768cbe711aa6485537adc139fe6a4c4 (patch)
treecd0e5e0c4ffbd5e1785db36d451bb6b45cc22ca0
parent276c9936004e6e2138c852765c66adca66d8a09c (diff)
downloadrgoncalves.se-0d3176bc3768cbe711aa6485537adc139fe6a4c4.tar.gz
bin/func: Generate shorter date for index
-rw-r--r--bin/func4
1 files 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
}
remember that computers suck.