[Rt-commit] r18860 - rt/3.999/branches/datetime/lib/RT/Interface
sartak at bestpractical.com
sartak at bestpractical.com
Thu Mar 19 16:00:30 EDT 2009
Author: sartak
Date: Thu Mar 19 16:00:30 2009
New Revision: 18860
Modified:
rt/3.999/branches/datetime/lib/RT/Interface/Email.pm
Log:
Use RT::DateTime in RT::Interface::Email
Modified: rt/3.999/branches/datetime/lib/RT/Interface/Email.pm
==============================================================================
--- rt/3.999/branches/datetime/lib/RT/Interface/Email.pm (original)
+++ rt/3.999/branches/datetime/lib/RT/Interface/Email.pm Thu Mar 19 16:00:30 2009
@@ -359,9 +359,7 @@
}
unless ( $args{'entity'}->head->get('date') ) {
- require RT::Date;
- my $date = RT::Date->new( current_user => RT->system_user );
- $date->set_to_now;
+ my $date = RT::DateTime->now;
$args{'entity'}->head->set( 'date', $date->rfc2822( time_zone => 'server' ) );
}
More information about the Rt-commit
mailing list