yodate: skip non-numbers at the beginning of the file

main
Motiejus Jakštys 2024-04-22 14:56:13 +03:00 committed by Motiejus Jakštys
parent 90f9999306
commit 30c0e1b868
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ in {
};
initExtra = ''
t() { git rev-parse --show-toplevel; }
yodate() { date --date=@"''${1:0:10}" +"%F %T"; }
yodate() { date --date=@$(echo "$1" | sed -E 's/^[^0-9]*(..........).*/\1/') +"%F %T"; }
source ${./gg.sh}
'';
};