PDA

View Full Version : Issues with Time and Date


mikeatmedicor
01-16-2008, 03:20 PM
Output of putty:

# date
Tue Jan 15 09:29:56 EST 2008
#


and a screen shot of my ticket system:
http://img443.imageshack.us/img443/1637/screenshot1ow7.th.jpg (http://img443.imageshack.us/my.php?image=screenshot1ow7.jpg)

I amusing HCL version 2.1.2, yes I am aware this is an older version of HCL, however I need the osTicket plug-in and this was the latest release with the osTicket module that I could find. I am unsure as to what osTicket version I have though, I checked the php code and the site for any info on that but found none.

Also this isn't browser specific, tried Firefox, IE ... its the same on both.

I did reboot my server, at first the time said it was 7:00PM, as you can see in the picture I time traveled to the past because the date stayed the same, the time however is set at 2:00PM.

If this is cause by the php code (as mentioned in the above posts) where can I find this code at?

Thanks for your help.

UPDATE:

I found this code inside the config.php of the osTicket module


//set timezone to server time if not defined
$config[timezone] = ($config[timezone] == "") ? date("Z") / 3600: $config[timezone];


it looks like that may be the problem but its all greek to me. anyone know what i can do to fix this?

ANOTHER UPDATE:
Inside of the osTicket Module (while in system configuration)
the timezone is set to Eastern with a Time Format of l, F j Y g:ia
I have tried to change the timezone to server timezone but that just displays the same results.

Also in the MySQL table ticket_config the timezone option is blank ... I am unsure if something needs to be here or what... again totally above my head.

I asked this question in the HCL forums (someone else has had this problem too) but so far I have found no answers. Any help is greatly appreciated.
Thanks again

4ice
01-16-2008, 03:31 PM
I think you are using a old version of osTicket. It seems (I never used the old one) that this was a known issue. According to DackR you should upgrade to the latest version to fix this (see http://www.osticket.com/forums/showthread.php?t=156).

About the piece of code you found in config.php, this cannot be the problem. This is just to have a default timezone if there is no timezone specified.

Further, the time format is only a PHP way to convert a record from the database containing a number (time measured in the number of seconds since the Unix Epoch (January 1 1970 00:00:00 GMT) into a normal date.

batboyz
04-01-2008, 09:34 AM
I've just installed osTicket 1.6 RC4, but I've got problem with ticket date and time. osTicket shows the ticket creation date as 02/04/2008 12:43am, however I submitted the ticket on 01/04/2008 04:43pm. I set the timezone as GMT 8.0. Why is this the case?

4ice
04-01-2008, 03:10 PM
Are you sure the timezone is set correctly?

Because there are two places where you can set the timezone. One is for your personal settings as an user in the admin panel, the other is the Default Timezone in the settings area.

batboyz
04-02-2008, 01:49 AM
Yes, I have the same timezone set on my account preferences and system preferences and settings.

For your information, I submitted the ticket as a non-registered user, will this affect anything?

4ice
04-02-2008, 07:00 AM
Are you sure the actual time on the server is set correctly? This might be worth checking.

batboyz
04-02-2008, 08:32 AM
Yes it is.

I just changed the timezone setting in php.ini, now it shows the correct date and time. This means that osticket does not follow its timezone setting, or something is wrong with the timezone calculation.

accosta
04-05-2008, 05:04 PM
I just install 1.3 through Fantastico.
All my tickets created show: "admin (Wednesday, December 31 1969 2:00pm)"
I set the correct time zone, all my other programs have no issues with date.

Any suggestion?

Corey
04-05-2008, 05:42 PM
I just install 1.3 through Fantastico.
All my tickets created show: "admin (Wednesday, December 31 1969 2:00pm)"
I set the correct time zone, all my other programs have no issues with date.

Any suggestion?

Don't use that version, it's outdated. It's also insecure and has many bugs. Install a fresh copy of RC4. If you need help installing the latest version, just ask.

azimpact
10-10-2008, 08:42 PM
What happened to the older post for the Date time stamp fix.

I fixed it once before but overwrote the fix and need to do it again.

All the old posts have been removed and the new ones just say update which is not possible for me do to heavy modifications and way to many tickets.
Can someone post the fix or email me.