fix times on appointments list (RT stores dates in UTC), RT#76486
authorIvan Kohler <ivan@freeside.biz>
Wed, 21 Jun 2017 20:05:13 +0000 (13:05 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 21 Jun 2017 20:05:13 +0000 (13:05 -0700)
httemplate/view/cust_main/appointments.html

index fe98652..171cb5c 100644 (file)
@@ -34,7 +34,7 @@
 %     }
 %
 %     use Date::Parse qw( str2time );
 %     }
 %
 %     use Date::Parse qw( str2time );
-%     my $starts = str2time( $ticket->{starts} ); #default format here sucks
+%     my $starts = str2time( $ticket->{starts}, 'UTC' ); #default format here sucks
 %     my $starts_pretty = '';
 %     $starts_pretty = time2str('%a %h %o %Y %l:%M%P', $starts)
 %       if $starts > 86400;
 %     my $starts_pretty = '';
 %     $starts_pretty = time2str('%a %h %o %Y %l:%M%P', $starts)
 %       if $starts > 86400;