foreach my $attr ( @{ $response->{protocolOp}->{searchResEntry}->{attributes} } ) {
if ( $attr->{type} =~ m/date/i ) {
foreach my $i ( 0 .. $#{ $attr->{vals} } ) {
- $attr->{vals}->[$i] = "$1-$2-$3" if $attr->{vals}->[$i] =~ m/^([12]\d\d\d)([01]\d+)([123]\d+)$/;
+ $attr->{vals}->[$i] = "$1-$2-$3" if $attr->{vals}->[$i] =~ m/^([12]\d\d\d)([01]\d+)([0123]\d+)$/;
}
} elsif ( $attr->{type} eq 'hrEduPersonUniqueNumber' ) {
foreach my $val ( @{ $attr->{vals} } ) {