[Rt-commit] r18894 - rt/3.999/branches/datetime/share/html/REST/1.0/Forms/ticket
sartak at bestpractical.com
sartak at bestpractical.com
Fri Mar 20 15:16:08 EDT 2009
Author: sartak
Date: Fri Mar 20 15:16:08 2009
New Revision: 18894
Modified:
rt/3.999/branches/datetime/share/html/REST/1.0/Forms/ticket/default
Log:
Use the ticket accessor directly instead of reparsing its
stringification
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 15:16:08 2009
@@ -209,9 +209,7 @@
foreach $key (@dates) {
next unless (!%$fields || (exists $fields->{lc $key}));
-
- my $time = RT::DateTime->new_from_string($ticket->$key);
- push @data, [ $key => $time->iso ];
+ push @data, [ $key => $ticket->$key->iso ];
}
foreach $key (qw(time_estimated time_worked time_left)) {
More information about the Rt-commit
mailing list