[Rt-commit] r18871 - rt/3.999/branches/datetime/lib/RT
sartak at bestpractical.com
sartak at bestpractical.com
Thu Mar 19 17:26:03 EDT 2009
Author: sartak
Date: Thu Mar 19 17:26:03 2009
New Revision: 18871
Modified:
rt/3.999/branches/datetime/lib/RT/Record.pm
Log:
Use RT::DateTime in RT::Record
Modified: rt/3.999/branches/datetime/lib/RT/Record.pm
==============================================================================
--- rt/3.999/branches/datetime/lib/RT/Record.pm (original)
+++ rt/3.999/branches/datetime/lib/RT/Record.pm Thu Mar 19 17:26:03 2009
@@ -66,7 +66,6 @@
use strict;
use warnings;
-use RT::Date;
use RT::Model::User;
use RT::Model::AttributeCollection;
use RT::Model::Attribute;
@@ -400,12 +399,11 @@
sub set_last_updated {
my $self = shift;
- my $now = RT::Date->new( current_user => $self->current_user );
- $now->set_to_now();
+ my $now = RT::DateTime->now;
my ( $msg, $val ) = $self->__set(
column => 'last_updated',
- value => $now->iso
+ value => $now,
);
( $msg, $val ) = $self->__set(
column => 'last_updated_by',
More information about the Rt-commit
mailing list