]> Sergey Matveev's repositories - public-inbox.git/blobdiff - lib/PublicInbox/Import.pm
import: allow the epoch (0s) as a valid time
[public-inbox.git] / lib / PublicInbox / Import.pm
index f8d100377e17e6e3058b2a91e3b0795969b276ea..1f831a7bf118be2649ef21b0936affa01abc2fb9 100644 (file)
@@ -233,7 +233,7 @@ sub parse_date ($) {
                warn "bogus TZ offset: $zone, ignoring and assuming +0000\n";
                $zone = '+0000';
        }
-       $ts ||= time;
+       $ts = time unless defined $ts;
        $ts = 0 if $ts < 0; # git uses unsigned times
        "$ts $zone";
 }