Mercurial > hgrepos > hgweb.cgi > s4
diff y4-funcs.sh @ 6:7ccd9c2eb97e
Add templates
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Sun, 19 Jul 2015 14:53:28 +0900 |
parents | 6822f4362bf9 |
children | 3db7524d3dea |
line wrap: on
line diff
--- a/y4-funcs.sh Sun Jul 19 14:25:55 2015 +0900 +++ b/y4-funcs.sh Sun Jul 19 14:53:28 2015 +0900 @@ -442,7 +442,7 @@ esac) } mktempd() { - mktemp -d -p $tmpdir/ -t $session + TMPDIR=$tmpdir mktemp -d -t $session } getval() { # $1=table $2=col $3(optional)=condition @@ -778,7 +778,7 @@ expire() ( at="${1:-$timeout}" FMT="${2:-%F %T}" - TZ=GMT date -d "$at" +"$FMT" + TZ=GMT gdate -d "$at" +"$FMT" ) addsession() { # expireをセット