diff options
| author | Romain Gonçalves <me@rgoncalves.se> | 2022-02-15 22:14:16 +0100 |
|---|---|---|
| committer | Romain Gonçalves <me@rgoncalves.se> | 2022-02-15 22:14:16 +0100 |
| commit | 0d3176bc3768cbe711aa6485537adc139fe6a4c4 (patch) | |
| tree | cd0e5e0c4ffbd5e1785db36d451bb6b45cc22ca0 | |
| parent | 276c9936004e6e2138c852765c66adca66d8a09c (diff) | |
| download | rgoncalves.se-0d3176bc3768cbe711aa6485537adc139fe6a4c4.tar.gz | |
bin/func: Generate shorter date for index
| -rw-r--r-- | bin/func | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 } |