Ask not what osTicket community can do for you - ask what you can do for osTicket community

Go Back   osTicket Forums > Project Tools > osTicket Bug Tracker > Bug

Issue Type Bug   Project osTicket Bug Tracker
osTicket 1.6 Stable
'Time Submitted' is off by 4 hours
Category Unknown
Affected Version 1.6 Stable
Priority 1 - Highest
Status Unconfirmed
Fixed Version (none)
Submitted 07-23-2010
Assigned Users (none) Tags (none)

issueid=220 07-23-2010 08:54 AM
Member
osTicket 1.6 Stable
'Time Submitted' is off by 4 hours

No matter what modifications I make to the timezone in the admin panel my ticket submitted time is 4 hours prior to when it was actually submitted. I have verified time on my server and in the php.ini file. I am at a complete loss as there is nothing in the forum about this topic.
Reply

10-16-2011 05:51 PM
Junior Member
 
I have exactly the same issue.

Is somebody have a clue on that ?

Thank you all.
Reply
10-17-2011 01:13 AM
Member
 
I actually fixed this for the implementation I did at the company I was with. I'm no longer with that company, and currently in Afghanistan with no access to the system I implemented osTicket on.

I'm sorry I can't help you.

Carl
Reply
10-17-2011 07:13 AM
Junior Member
 
I fixed my problem by editing the timezone in PHP.INI using the WAMPSERVER application with the exact timezone where my server is running :

[Date]
; Defines the default timezone used by the date functions
; http://php.net/date.timezone
date.timezone = America/Montreal


After I restarted all the services and my problem was resolved.

I simply dont know why it didn't work by editing directly the PHP.INI using notepad.

Also, I removed the possibility to change the timezone in all the users preferences in \include\staff\mypref.inc.php by commenting these lines (starting around line 28) :



<!--

\\\\\\\\\\ TIMEZONE DISABLED BY GROUPEGT - BEGIN ///////////

<tr>
<td nowrap>Preferred Timezone:</td>
<td>
<select name="timezone_offset">
<?
$gmoffset = date("Z") / 3600; //Server's offset.
$currentoffset = ($rep['timezone_offset']==NULL)?$cfg->getTZOffset():$rep['timezone_offset'];
echo"<option value=\"$gmoffset\">Server Time (GMT $gmoffset:00)</option>"; //Default if all fails.
$timezones= db_query('SELECT offset,timezone FROM '.TIMEZONE_TABLE);
while (list($offset,$tz) = db_fetch_row($timezones)){
$selected = ($currentoffset==$offset) ?'SELECTED':'';
$tag=($offset)?"GMT $offset ($tz)":" GMT ($tz)"; ?>
<option value="<?=$offset?>"<?=$selected?>><?=$tag?></option>
<?}?>
</select>
</td>
</tr>

<tr>
<td>Daylight Savings:</td>
<td>
<input type="checkbox" name="daylight_saving" <?=$rep['daylight_saving'] ? 'checked': ''?>>Observe daylight saving
</td>
</tr>


\\\\\\\\\\ TIMEZONE DISABLED BY GROUPEGT - END ///////////

-->




Hope that this help.

Gilles.
Reply

Issue Tools
Subscribe to this issue

All times are GMT -4. The time now is 12:59 AM.