[Rt-commit] r18647 - in rt/3.999/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Tue Mar 3 20:32:57 EST 2009
Author: sartak
Date: Tue Mar 3 20:32:57 2009
New Revision: 18647
Modified:
rt/3.999/trunk/ (props changed)
rt/3.999/trunk/Makefile.PL
rt/3.999/trunk/lib/RT/DateTime.pm
Log:
r80869 at onn: sartak | 2009-03-03 20:32:46 -0500
RT::DateTime->W3CDTF
Modified: rt/3.999/trunk/Makefile.PL
==============================================================================
--- rt/3.999/trunk/Makefile.PL (original)
+++ rt/3.999/trunk/Makefile.PL Tue Mar 3 20:32:57 2009
@@ -42,6 +42,7 @@
'Devel::StackTrace' => '1.19',
'Text::Naming::Convention' => 0,
'DateTime' => '0.46',
+ 'DateTime::Format::W3CDTF' => '0.04',
);
features(
Modified: rt/3.999/trunk/lib/RT/DateTime.pm
==============================================================================
--- rt/3.999/trunk/lib/RT/DateTime.pm (original)
+++ rt/3.999/trunk/lib/RT/DateTime.pm Tue Mar 3 20:32:57 2009
@@ -57,5 +57,12 @@
return $self->SUPER::set_time_zone($self->_canonicalize_time_zone($tz));
}
+use DateTime::Format::W3CDTF;
+my $W3CDTF_formatter = DateTime::Format::W3CDTF->new;
+sub W3CDTF {
+ my $self = shift;
+ $W3CDTF_formatter->format_datetime($self);
+}
+
1;
More information about the Rt-commit
mailing list