ajout du type mysql pour parse_date

This commit is contained in:
Jephté Clain 2014-05-03 17:22:47 +04:00
parent abd197b843
commit 7817ebf8d1
2 changed files with 4 additions and 7 deletions

View File

@ -1 +1 @@
35
36

View File

@ -868,12 +868,9 @@ function parse_date() {
}')"
esac
case "$type" in
d|date)
awk '{ print strftime("%d/%m/%Y", $0 + 0) }' <<<"$value"
;;
l|ldap)
awk '{ print strftime("%Y%m%d%H%M%S+0400", $0 + 0) }' <<<"$value"
;;
d|date) awk '{ print strftime("%d/%m/%Y", $0 + 0) }' <<<"$value";;
l|ldap) awk '{ print strftime("%Y%m%d%H%M%S+0400", $0 + 0) }' <<<"$value";;
m|mysql) awk '{ print strftime("%Y-%m-%d", $0 + 0) }' <<<"$value";;
*)
rawecho "$value"
;;