Version of script: 2.0
Hosting company:
URL of phpinfo.php:
URL of session_test.php:
What terms did you try when SEARCHING for a solution:
Write your message below:
I've been testing this small thing. I've changed (for testing) one of the input fields on the "add ticket" page, from an email input to date input. But I also created a code (copied it from the original) to show only the date and not the time.
Code: Select all
function hesk_datum($dat='')
{
global $hesk_settings;
if (!$dat)
{
$dat = time();
}
else
{
$dat = strtotime($dat);
}
return date($hesk_settings['dateformat'], $dat);
} // End hesk_datum()
But when I post the ticket, and watch the ticket I just posted the date is shown as 01-01-1970 and not as today.
At the ticket.php I saw the following line (the default line):
Code: Select all
<tr>
<td class="tickettd"><?php echo $hesklang['date']; ?>:</td>
<td class="tickettd"><?php echo hesk_date($ticket['dt']); ?></td>
</tr>
Code: Select all
<tr>
<td class="tickettd"><?php echo $hesklang['date_deliv']; ?>:</td>
<td class="tickettd"><?php echo hesk_datum($ticket['dat']); ?></td>
</tr>
Code: Select all
<tr>
<td style="text-align:right" width="150"><?php echo $hesklang['date_deliv']; ?>: <font class="important">*</font></td>
<td width="80%"><input type="text" name="dat" id="dat" size="15" maxlength="15" value="<?php echo stripslashes(hesk_datum($_SESSION['c_dat']));?>" /></td>
</tr>