remove comments and cleanup

This commit is contained in:
Milan
2020-03-07 23:11:44 +01:00
parent 9b7a1ebc88
commit 4584125923
30 changed files with 34 additions and 167 deletions

View File

@@ -481,7 +481,7 @@ sub check_datetime($) {
sub check_year_month($) {
my $date = shift;
return -1 unless ( defined $date );
return -1 unless defined $date;
return $date if ( $date eq '' );
if ( $date =~ /(\d\d\d\d)\-(\d\d?)/ ) {
return $1 . '-' . $2 . '-' . $3;