Changeset 12571
- Timestamp:
- 2006-08-25T17:07:35+12:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/DateList.pm
r11862 r12571 224 224 foreach my $classification (@$classlistref) { 225 225 my $date = $self->{'list'}->{$classification}; 226 $date =~ s/^(\d\d\d\d) (\d\d).*$/$1 _textmonth$2_/;226 $date =~ s/^(\d\d\d\d)-?(\d\d).*$/$1 _textmonth$2_/; 227 227 # sanity check if month is zero 228 228 if ($date =~ /00_$/) { … … 236 236 foreach my $classification (@$classlistref) { 237 237 my $date = $self->{'list'}->{$classification}; 238 $date =~ s/^(\d\d\d\d) (\d\d).*$/$1 _textmonth$2_/;238 $date =~ s/^(\d\d\d\d)-?(\d\d).*$/$1 _textmonth$2_/; 239 239 my ($year, $month)=($1,$2); 240 240 # sanity check if month is zero
Note:
See TracChangeset
for help on using the changeset viewer.