Hello,
I am tryin to add two time fields to the tickets that can display the starting time in hour and minutes and the ending time in hour and minutes inside the staff view but i have troubles to display them.
I declared the time this way in class.ticket.php :
'debutdate' => $this->getDebutDate()?(Format:('G', Misc:($this->getDebutDate()))):'',
Then inside ticket-open.inc.php and ticket-edit.inc.php, i added it this way :
<tr>
<td width="160" class="required">Start Time</td>
<td>
<?php
$min=$hr=null;
if($info)
list($hr, $min)=explode(':', $info);
echo Misc:($hr, $min, 'debutdate');
?>
<font class="error"> <?php echo $errors; ?> <?php echo $errors; ?></font>
<em> test Time is based on your time zone (GMT <?php echo $thisstaff->getTZoffset(); ?>)</em>
</td>
</tr>
finally inside ticket-view.inc.php :
<tr>
<th width="100">Start Time: </th>
<td>
<?php echo Format:($ticket->getDebutDate()); ?>
</td>
</tr>
What i am doing wrong?
thank you in advance for your help and have a good day :)