From 2a43d57275b93ca6ef8e2bf1c349baef605040a1 Mon Sep 17 00:00:00 2001 From: Andrew Chilton Date: Fri, 27 Jun 2008 00:20:10 +1200 Subject: [PATCH] Use a explicit stringify method instead of an implicit one on DateTimes. --- lib/CIL/Base.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } -- 2.39.5