[Rt-commit] r18649 - in rt/3.999/trunk: .
sartak at bestpractical.com
sartak at bestpractical.com
Tue Mar 3 20:41:29 EST 2009
Author: sartak
Date: Tue Mar 3 20:41:28 2009
New Revision: 18649
Modified:
rt/3.999/trunk/ (props changed)
rt/3.999/trunk/Makefile.PL
rt/3.999/trunk/lib/RT/DateTime.pm
Log:
r80873 at onn: sartak | 2009-03-03 20:41:23 -0500
DateTime::Format::Mail for $dt->rfc2822
Modified: rt/3.999/trunk/Makefile.PL
==============================================================================
--- rt/3.999/trunk/Makefile.PL (original)
+++ rt/3.999/trunk/Makefile.PL Tue Mar 3 20:41:28 2009
@@ -43,6 +43,7 @@
'Text::Naming::Convention' => 0,
'DateTime' => '0.46',
'DateTime::Format::W3CDTF' => '0.04',
+ 'DateTime::Format::Mail' => '0.30',
);
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:41:28 2009
@@ -64,5 +64,12 @@
$W3CDTF_formatter->format_datetime($self);
}
+use DateTime::Format::Mail;
+my $RFC2822_formatter = DateTime::Format::Mail->new;
+sub rfc2822 {
+ my $self = shift;
+ $RFC2822_formatter->format_datetime($self);
+}
+
1;
More information about the Rt-commit
mailing list