POSIX date
This commit is contained in:
parent
d36c987119
commit
a4ecb9dd34
1 changed files with 1 additions and 1 deletions
2
build.sh
2
build.sh
|
@ -12,7 +12,7 @@ template () {
|
|||
if test -n "$2"; then
|
||||
echo -n "<header>"
|
||||
echo -n "<h1>$1</h1>"
|
||||
echo -n "<p><small>Último cambio: <time datetime='$(stat -c %y "$2")'>$(date -d "$(stat -c %y "$2")" '+%Y-%m-%d %H:%M')</time></small></p>"
|
||||
echo -n "<p><small>Último cambio: <time datetime='$(stat -c %y "$2")'>$(date -d "$(stat -c %y "$2" | cut -f 1 -d .)" '+%Y-%m-%d %H:%M')</time></small></p>"
|
||||
echo -n "</header>"
|
||||
fi
|
||||
}
|
||||
|
|
Reference in a new issue