- unless($entry->{'Date'} && $entry->{'Timestamp'}) {
- $entry->{'Date'} = $4;
- $entry->{'Timestamp'} = str2time($4)
- or $self->_do_parse_error( $file, $NR, "couldn't parse date $4" );
+ unless($entry->{'Date'} && defined $entry->{'Timestamp'}) {
+ $entry->{'Date'} = "$4";
+ $entry->{'Timestamp'} = str2time($4);
+ unless (defined $entry->{'Timestamp'}) {
+ $self->_do_parse_error( $file, $NR,
+ __g( "couldn't parse date %s",
+ "$4" ) );
+ }