Help Center Live Community
April 19, 2014, 06:21:22 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: problem with time and date  (Read 11179 times)
a-z-listings.com
Not too much to say...
*
Offline Offline

Posts: 4


« on: August 03, 2007, 05:08:57 AM »

When we look at our tickets they are saying 12/31/1969 for the today and we have it set for Server Eastern.

this is the format l, F j Y g:ia

Thanks for the help!
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #1 on: August 03, 2007, 03:52:58 PM »

Double check your servers time (enter date in a shell).  HCL get's it's date codes from the OS, so if your operating system is reporting the wrong date, then of course the system will as well.
Logged

how may I help you today?
a-z-listings.com
Not too much to say...
*
Offline Offline

Posts: 4


« Reply #2 on: August 07, 2007, 07:57:03 PM »

We have installed a test site for HCL from our Cpanel and from the fresh install the date and time stamp for tickets is showing 1969 for date and the time is way too. We have checked with our host and they said that shell and server are set correctly.
Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #3 on: August 07, 2007, 08:47:25 PM »

We have installed a test site for HCL from our Cpanel and from the fresh install the date and time stamp for tickets is showing 1969 for date and the time is way too. We have checked with our host and they said that shell and server are set correctly.

You might want to point out to your host that the script uses a simple php time function, straight call from the OS IIRC.
Logged

how may I help you today?
phreekbird
Not too much to say...
*
Offline Offline

Posts: 2


« Reply #4 on: January 15, 2008, 04:02:23 PM »

Anyone find and answer to this... I am also having the same problem.

Output of putty:
Quote
# date
Tue Jan 15 09:29:56 EST 2008
#

and a screen shot of my ticket system:


I amusing HCL version 2.1.2, yes I am aware this is an older version, however I need the osTicket plug-in and this was the latest release with the osTicket module that I could find.

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.
Logged
phreekbird
Not too much to say...
*
Offline Offline

Posts: 2


« Reply #5 on: January 15, 2008, 04:43:00 PM »

UPDATE:

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

Code:
//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.
« Last Edit: January 15, 2008, 05:22:26 PM by phreekbird » Logged
HCL Admin
Administrator
HCL Superstar
*****
Offline Offline

Posts: 882


WWW
« Reply #6 on: January 19, 2008, 02:21:19 PM »

And this is one of over 200 reasons we had to drop the osTicket module.... Sad
Logged

how may I help you today?
unix4linux
Not too much to say...
*
Offline Offline

Posts: 7


« Reply #7 on: July 04, 2008, 02:00:41 AM »

For me, the date is fine but the timezone is off.   My system is showing the correct time both for 'date' and 'hwclock'.   I 'grep' all the files in the the HCL for 'timezone' or anything similar and don't see where the timezone is being specified.   Can anyone point out where I need to go to edit the timezone.   I am showing about 8 hours off my timezone
Logged
unix4linux
Not too much to say...
*
Offline Offline

Posts: 7


« Reply #8 on: July 08, 2008, 11:05:26 PM »

Would anyone be able to help out on this one?  I have been trying to fix this for a few days and still no luck.
Logged
unix4linux
Not too much to say...
*
Offline Offline

Posts: 7


« Reply #9 on: November 17, 2008, 04:03:21 AM »

Can anyone help?Huh
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.8 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.176 seconds with 18 queries.

Google visited last this page April 17, 2014, 10:42:14 PM