tinycm rev 41
blog plugin: fixe new post date
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Jan 08 13:39:49 2014 +0100 (2014-01-08) |
parents | c93ac3d11700 |
children | 50fafdd0a2eb |
files | plugins/blog/blog.cgi |
line diff
1.1 --- a/plugins/blog/blog.cgi Wed Jan 08 00:02:16 2014 +0100 1.2 +++ b/plugins/blog/blog.cgi Wed Jan 08 13:39:49 2014 +0100 1.3 @@ -93,7 +93,7 @@ 1.4 fi 1.5 # New post 1.6 if [ "$d" == "new" ]; then 1.7 - date=$(date '+%Y-%M-%d') 1.8 + date=$(date '+%Y-%m-%d') 1.9 last=$(ls -r $blog | head -n 1) 1.10 nb=${last%.txt} 1.11 d=$(($nb + 1))