From 0b9116d95512c69c745524e7d84c6020efefe351 Mon Sep 17 00:00:00 2001 From: Pavel Roskin Date: Fri, 13 Dec 2002 05:22:09 +0000 Subject: [PATCH] Restore setting current time if the date cannot be parsed. --- vfs/extfs/patchfs.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vfs/extfs/patchfs.in b/vfs/extfs/patchfs.in index 91049315c..97928e09d 100644 --- a/vfs/extfs/patchfs.in +++ b/vfs/extfs/patchfs.in @@ -31,9 +31,9 @@ sub datetime # in case of problems fall back to 0 in unix time # note: str2time interprets some wrong values (eg. " ") as 'today' if ($parsedates && defined (my $t=str2time($_[0]))) { - return timef($t) + return timef($t); } - return timef(0); + return timef(time); } # print message on stderr and exit