backport spelling fix alias to reduce pain in backporting
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 12 Mar 2010 17:06:56 +0000 (17:06 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Fri, 12 Mar 2010 17:06:56 +0000 (17:06 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/branches/rel_1_2@1936 9efc2488-bf62-4759-914b-345cdb29e865

src/perl/lib/OpenSRF/Utils.pm

index 01ced81..b98a9fd 100644 (file)
@@ -41,7 +41,7 @@ our $date_parser = DateTime::Format::ISO8601->new;
 %EXPORT_TAGS = (
        common          => [qw(interval_to_seconds seconds_to_interval sendmail tree_filter)],
        daemon          => [qw(safe_fork set_psname daemonize)],
-       datetime        => [qw(clense_ISO8601 gmtime_ISO8601 interval_to_seconds seconds_to_interval)],
+       datetime        => [qw(clense_ISO8601 cleanse_ISO8601 gmtime_ISO8601 interval_to_seconds seconds_to_interval)],
 );
 
 Exporter::export_ok_tags('common','daemon','datetime');  # add aa, cc and dd to @EXPORT_OK
@@ -374,6 +374,10 @@ sub gmtime_ISO8601 {
        return sprintf('%d-%0.2d-%0.2dT%0.2d:%0.2d:%0.2d+00:00', $y, $M, $d, $h, $m, $s);
 }
 
+sub cleanse_ISO8601 {
+    return clense_ISO8601(@_);
+}
+
 sub clense_ISO8601 {
        my $self = shift;
        my $date = shift || $self;