OTRS 6.0.8 - Date Field with Timezone Difference

Moderator: crythias

Post Reply
jff
Znuny newbie
Posts: 52
Joined: 23 Mar 2016, 14:17
Znuny Version: 6.0.8
Real Name: Jeff
Company: M

OTRS 6.0.8 - Date Field with Timezone Difference

Post by jff »

Hello,

I am facing a very annoying behavior in OTRS that I believe is more related to Javascript then to OTRS itself.

My location has daylight savings and when this started I had to change the server time and OTRS timezone to make tickets and articles to show the correct time, otherwise it would store and show 1 hour behind current time.

The issue I'm facing now is with Date fields on CMDB, everytime I need to edit a record, the DAY in the date field will go back one day, any action to perform a page reload will decrease another day.

Searching for this I found out that Javascript interpret the field as 00:00 so when there is a timezone difference the field will take that into consideration and since anything less than 0h is the day behind, that's why I always a day behind current day stored.

The time on the server (ticket, article, etc) is right, I just need to figure out a way to CMDB ignore the timezone difference.

By the way, If I change my agent timezone to UTC fixes this issue, however, it will store data 2 hours ahead my current time, not a solution.

In suggestion in this is greatly appreciated.
Thanks.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jojo »

update to the latest patchlevel
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
jff
Znuny newbie
Posts: 52
Joined: 23 Mar 2016, 14:17
Znuny Version: 6.0.8
Real Name: Jeff
Company: M

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jff »

Hello JOJO,

Thank you for the reply, I am really considering doing so but was this a known issue?
I just want to make sure before I upgrade.
jojo
Znuny guru
Posts: 15019
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jojo »

as far as I remember yes. You should always update to the latest patchlevel, you already missed several bugfixes, but most important several security related fixes!
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
jff
Znuny newbie
Posts: 52
Joined: 23 Mar 2016, 14:17
Znuny Version: 6.0.8
Real Name: Jeff
Company: M

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jff »

Thank you Jojo.
Post Reply