-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ticket time is showing wrong #3654
Comments
Try to check your php.ini conf and set your time zone.. |
time zone in my php.ini is correct
Thanks&Regards
Lijo Joseph George
Technical Team|| ManoramaOnline
Mobile: +91 9895336448 | Office : +91 0481 2563646 | Ext :670
Visit us:www.manoramaonline.com | LinkedIn | Facebook | Twitter
From: iHunt NSA <notifications@github.com>
To: osTicket/osTicket <osTicket@noreply.github.com>
Cc: lijo joseph george <lijojosephgeorge@mm.co.in>, Author
<author@noreply.github.com>
Date: 06-02-2017 AM 09:19
Subject: Re: [osTicket/osTicket] ticket time is showing wrong
(#3654)
Try to check your php.ini conf and set your time zone..
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
************************************Malayala Manorama**********************************
The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of Malayala Manorama (MM) and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Malayala Manorama.
This e-mail message including attachment/(s), if any, believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MM is not responsible for any loss or damage arising in any way from its use.
*********************************************************
|
If the time is wrong as you state, what should the time be? By how much is it off? |
Seem that its showing time of Timezone IST (Interpreted as
Asia/Jerusalem) not of Asia/Kolkata I need the time of Asia/Kolkata for
the tickets.
Thanks&Regards
Lijo Joseph George
Technical Team|| ManoramaOnline
Mobile: +91 9895336448 | Office : +91 0481 2563646 | Ext :670
Visit us:www.manoramaonline.com | LinkedIn | Facebook | Twitter
From: Fabian Dellwing <notifications@github.com>
To: osTicket/osTicket <osTicket@noreply.github.com>
Cc: lijo joseph george <lijojosephgeorge@mm.co.in>, Author
<author@noreply.github.com>
Date: 06-02-2017 PM 02:41
Subject: Re: [osTicket/osTicket] ticket time is showing wrong
(#3654)
If the time is wrong as you state, what should the time be? By how much is
it off?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
************************************Malayala Manorama**********************************
The contents of this E-mail (including the contents of the enclosure(s) or attachment(s) if any) are privileged and confidential material of Malayala Manorama (MM) and should not be disclosed to, used by or copied in any manner by anyone other than the intended addressee(s). In case you are not the desired addressee, you should delete this message and/or re-direct it to the sender. The views expressed in this E-mail message (including the enclosure(s) or attachment(s) if any) are those of the individual sender, except where the sender expressly, and with authority, states them to be the views of Malayala Manorama.
This e-mail message including attachment/(s), if any, believed to be free of any virus. However, it is the responsibility of the recipient to ensure that it is virus free and MM is not responsible for any loss or damage arising in any way from its use.
*********************************************************
|
Well, this is already know: #3583 |
Looked into it and are completely confused... So in the ost_config is correct 'Asia/Kolkata' (+5:30), in Edit: Found it. It's an error in the <?php
$formatter = new IntlDateFormatter('de',3,3,'Asia/Kolkata',IntlDateFormatter::GREGORIAN,null);
echo $formatter->format(time());
?> This should be 'now + 5:30' but is 'now + 4:30'! |
@fdellwing We've ran into this issue on multiple occasions do you have any more details to put in a fix? |
Not yet, have to take a closer look at the |
From #3583
It seems like the interpretation can change for strange reasons. CST db_timezone was being interpreted as UTC in a test install... I restarted the server twice and had the same issue. To debug it I started installing php-devel, php-xdebug and restarting the webserver... but then the problem disappeared and CST correctly resolved to America/Chicago. 0_0 |
CST will never be interpreted as UTC by |
To remove timezone issue with osticket DB timezone as : IST (Interpreted as Asia/Jerusalem) we have done quick fix ain include/class.config.php Search for line having in this function you would last line as The function would like below. This will help a lot till proper code fix is there. |
Thanks all, |
@deependhulla I hope you don't want to promote that as a valid solution. If you want a proper solution, take a look at my PR #3663 |
@fdellwing my suggestion is for quick fix, so that work get started specially who are looking forward to implement osticket and have got all correct but basic timezone feature is creating problem to start off , this would help them using and exploring octicket's features and power. Actually would prefer original core osticket fix this timezone issue asap. overall I love osticket. |
For Googlers, if your database time is set to GMT, OSTicket reads this as 'Europe/London' instead of UTC. Your times will then be 1 hour off during DST. To fix this, change
|
@deependhulla ...Thank you very much....your given a proper solution..!!! |
耐你们 |
Yes, this patch good, but this is hardcoded function. Im using Asia/Yekaterinburg (GMT +5.00) but in osticket i see in tickets date as GMT +4.00. |
Hi However we recently upgraded to 1.12.2 and all our ticket times were weird again, this time it was advancing by 2 hours 30 mins (as if the timezone is +8 instead of +5.30). We just applied the same patch and seems to be working well. Is the bug still getting carried from 1.10. to 1.12? |
not aware of 1.12 .. but this fix worked for us on osTicket (v1.14.2) again. |
I tried both solutions and I might be wrong but I think none worked for me. Also I just updated to 1.14.2 but I dont think there was a fix for this on this version. Before this fix I saw MST (Interpreted as America/Denver) with 1 hour less than my time. After doing the solution user @deependhulla proposed above I at least can see my real timezone selected in the Timezone section which is America / Mexico_City but now my time is off by 2 hrs. Even if I try other time zones more advanced in time for example "America/New_York" which is 2 hours ahead and could compensate my 2 hrs it ends up 4 hrs before not ahead. Also I checked my server time and it is in MST with the correct time. I checked this by doing the command "date" on the terminal. Anyone still having this problem? I understend the problem is closed but I cant fix it. |
What is your System Timezone set to (Admin Panel > Settings > System > Date and Time Options > Default Timezone)? Is it Also, what is your Profile Timezone set to (Profile > Preferences > Localization > Timezone)? Cheers. |
Hey there @JediKev I think while reading your questions you helped me figure it out. I selected in Admin Panel > Settings > System > Date and Time Options > Default Timezone "America/Los_Angeles" and then in my profiles I had America/Mexico_City. This way it worked fine. Thanks! |
Awesome! I'm glad you got this resolved! Cheers. |
Hi all ! |
@JediKev another one with this bug |
@JediKev this bug found on 1.12.2 version, and i told about this in issue information (up to 1.12.6), this issue comes from old time, and no reaction. Im assume that ticket should be reopened |
found again v1.15.7 (26ab7e9) and quick fixed as above, but i think it should be permanently fixed |
Dear All |
Ticket time is showing wrong . I have checked in my server time and my sql server time is correct there.
Ticket time is showing wrong . I have checked in my server time and my sql server time is correct there.
The text was updated successfully, but these errors were encountered: