Fixed expire text to date convertion to be compliant with date command of Debian Squeeze
Benjamin Renard

Benjamin Renard commited on 2014-01-22 14:18:40
Showing 1 changed files, with 1 additions and 0 deletions.

... ...
@@ -86,6 +86,7 @@ case $TLD in
86 86
 		EXDATE=`echo $EXTXT|sed 's/ *[^:]*: *\(.*\)$/\1/'`
87 87
 		[ $DEBUG -eq 1 ] && echo "Expire date : $EXDATE"
88 88
 		EXTIME=`date +%s -d"$EXDATE"`
89
+		[ $? -ne 0 ] && EXDATE=`echo "$EXDATE"|sed 's/Z$//'` && EXTIME=`date +%s -d"$EXDATE"`
89 90
 		[ $DEBUG -eq 1 ] && echo "Expire time : $EXTIME"
90 91
 esac
91 92
 
92 93