In OS ticket systems, when i create a new ticket, time is inserting correctly in DB.Even in Mypreference it is showing the correct time .But in ticketing system admin panel, there is time difference while opening new ticket or replying new tickets..

Time Issue

I experienced this same issue. I had to go and set my time preferences for each user to offset the time difference that was being displayed. My server is setup for Eastern (-5), my osTicket DB is setup for -5, however my tickets were 4 hours off. I went back and changed my time preferences for the users to be -1 and everything is working perfectly now. I submitted a bug report on this about 2 months ago and never heard anything back.

11 days later

I had the same issue crop up. I changed my userdate function. Seemed the $_SESSION variable was empty for my timezone and daylight savings offset.

OLD function

function userdate($format,$gmtime) {

return Format:($format,$gmtime,$_SESSION,$_SESSION);

}

NEW function

function userdate($format,$gmtime) {

global $cfg;

return Format:($format,$gmtime,$cfg->getTZOffset(),$cfg->observeDaylightSaving());

}

7 days later

@[deleted]:

Where did you change this function? I know just enough to be dangerous with this stuff and can probably do it if I know where to go.

Thank you for your fix, this issue is extremely irritating.

Write a Reply...