From: Andrew Chilton Date: Thu, 26 Jun 2008 12:20:10 +0000 (+1200) Subject: Use a explicit stringify method instead of an implicit one on DateTimes. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=2a43d57275b93ca6ef8e2bf1c349baef605040a1;p=cil.git Use a explicit stringify method instead of an implicit one on DateTimes. --- diff --git a/lib/CIL/Base.pm b/lib/CIL/Base.pm index 681a544..b08ebd8 100644 --- a/lib/CIL/Base.pm +++ b/lib/CIL/Base.pm @@ -178,7 +178,7 @@ sub set_no_update { sub set_inserted_now { my ($self) = @_; - my $time = '' . DateTime->now; + my $time = DateTime->now->iso8601; $self->{data}{Inserted} = $time; $self->{data}{Updated} = $time; $self->{Changed} = 1; @@ -186,7 +186,7 @@ sub set_inserted_now { sub set_updated_now { my ($self) = @_; - my $time = '' . DateTime->now; + my $time = DateTime->now->iso8601; $self->{data}{Updated} = $time; $self->{Changed} = 1; }