[Rt-commit] r18887 - rt/3.999/branches/datetime/share/html/REST/1.0/Forms/ticket
sartak at bestpractical.com
sartak at bestpractical.com
Fri Mar 20 12:46:36 EDT 2009
Author: sartak
Date: Fri Mar 20 12:46:36 2009
New Revision: 18887
Modified:
rt/3.999/branches/datetime/share/html/REST/1.0/Forms/ticket/default
Log:
iso datetime instead of as_string
Modified: rt/3.999/branches/datetime/share/html/REST/1.0/Forms/ticket/default
==============================================================================
--- rt/3.999/branches/datetime/share/html/REST/1.0/Forms/ticket/default (original)
+++ rt/3.999/branches/datetime/share/html/REST/1.0/Forms/ticket/default Fri Mar 20 12:46:36 2009
@@ -211,7 +211,7 @@
next unless (!%$fields || (exists $fields->{lc $key}));
my $time = RT::DateTime->new_from_string($ticket->$key);
- push @data, [ $key => $time->as_string ];
+ push @data, [ $key => $time->iso ];
}
foreach $key (qw(time_estimated time_worked time_left)) {
@@ -277,7 +277,7 @@
$set = "set_$key";
my $time = RT::DateTime->new_from_string($ticket->$key);
- next if ($val =~ /^not set$/i || $val eq $time->as_string);
+ next if ($val =~ /^not set$/i || $val eq $time->iso);
$time = RT::DateTime->new_from_string($val);
($n, $s) = $ticket->$set($time);
More information about the Rt-commit
mailing list