[Rt-commit] r5872 - in rt/branches/3.6-RELEASE: . lib/RT/Action

jesse at bestpractical.com jesse at bestpractical.com
Wed Sep 6 15:07:29 EDT 2006


Author: jesse
Date: Wed Sep  6 15:07:22 2006
New Revision: 5872

Modified:
   rt/branches/3.6-RELEASE/   (props changed)
   rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm
   rt/branches/3.6-RELEASE/sbin/rt-test-dependencies.in

Log:
 r27203 at pinglin:  jesse | 2006-09-06 15:07:04 -0400
 RT-Ticket: 7848
 RT-Status: resolved
 RT-Update: correspond
 
 * POSIX::strftime on Solaris isn't robust enough to deal with our Date: header generation.  
   Switched to Date::Format::strftime instead.  - ADDED DEPENDENCY: Date::Format
   Fix thanks to Tim Bishop 
 
 


Modified: rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm	(original)
+++ rt/branches/3.6-RELEASE/lib/RT/Action/SendEmail.pm	Wed Sep  6 15:07:22 2006
@@ -56,7 +56,7 @@
 
 use RT::EmailParser;
 use Mail::Address;
-use POSIX qw(strftime);
+use Date::Format qw(strftime);
 
 =head1 NAME
 
@@ -252,8 +252,9 @@
     }
 
     unless ($MIMEObj->head->get('Date')) {
-      $self->SetHeader('Date',
-                       strftime('%a, %d %b %Y %H:%M:%S %z', localtime()));
+        # We coerce localtime into an array since strftime has a flawed prototype that only accepts
+        # a list
+      $self->SetHeader('Date', strftime('%a, %d %b %Y %H:%M:%S %z', @{[localtime()]}));
     }
 
     my $SendmailArguments = $RT::SendmailArguments;

Modified: rt/branches/3.6-RELEASE/sbin/rt-test-dependencies.in
==============================================================================
--- rt/branches/3.6-RELEASE/sbin/rt-test-dependencies.in	(original)
+++ rt/branches/3.6-RELEASE/sbin/rt-test-dependencies.in	Wed Sep  6 15:07:22 2006
@@ -159,6 +159,7 @@
 DBI 1.37
 Test::Inline
 Class::ReturnValue 0.40
+Date::Format
 DBIx::SearchBuilder 1.39
 Text::Template
 File::Spec 0.8


More information about the Rt-commit mailing list