[Opensrf-commits] r1936 - branches/rel_1_2/src/perl/lib/OpenSRF (miker)

svn at svn.open-ils.org svn at svn.open-ils.org
Fri Mar 12 12:06:59 EST 2010


Author: miker
Date: 2010-03-12 12:06:56 -0500 (Fri, 12 Mar 2010)
New Revision: 1936

Modified:
   branches/rel_1_2/src/perl/lib/OpenSRF/Utils.pm
Log:
backport spelling fix alias to reduce pain in backporting

Modified: branches/rel_1_2/src/perl/lib/OpenSRF/Utils.pm
===================================================================
--- branches/rel_1_2/src/perl/lib/OpenSRF/Utils.pm	2010-03-08 03:26:03 UTC (rev 1935)
+++ branches/rel_1_2/src/perl/lib/OpenSRF/Utils.pm	2010-03-12 17:06:56 UTC (rev 1936)
@@ -41,7 +41,7 @@
 %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 @@
 	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;



More information about the opensrf-commits mailing list