Skip to content

Commit

Permalink
Revert: Add seconds to datetime to help out elasticsearch parser
Browse files Browse the repository at this point in the history
  • Loading branch information
webwurst committed Oct 23, 2016
1 parent a47a930 commit 3362b88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/scrapers-muenster/lib/MsEvent.pm
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ sub save_event {
if ( $event->{parsetime} ) {
my $ptime = $event->{parsetime};
if ($ptime =~ /([012]?\d)[.:](\d\d)/ ) {
$event->{datetime} .= ' ' . sprintf( '%02d', $1 ) . ':' . $2 . ':00';
$event->{datetime} .= ' ' . sprintf( '%02d', $1 ) . ':' . $2 ;
} elsif ( $ptime =~ /([012]?\d)\s*Uhr/ ) {
$event->{datetime} .= ' ' . sprintf( '%02d', $1 ) . ':00' . ':00';
$event->{datetime} .= ' ' . sprintf( '%02d', $1 ) . ':00' ;
}
}

Expand Down

0 comments on commit 3362b88

Please sign in to comment.