OTRS 6.0.8 - Date Field with Timezone Difference

Moderator: crythias

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

OTRS 6.0.8 - Date Field with Timezone Difference

Post by jff » 11 Jan 2019, 12:21

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
Moderator
Posts: 14571
Joined: 26 Jan 2007, 14:50
OTRS Version?: Git Master
Contact:

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jojo » 11 Jan 2019, 12:34

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

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com :: Share your ideas

jff
OTRS newbie
Posts: 48
Joined: 23 Mar 2016, 14:17
OTRS Version?: 6.0.8
Real Name: Jeff
Company: M

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jff » 11 Jan 2019, 13:42

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
Moderator
Posts: 14571
Joined: 26 Jan 2007, 14:50
OTRS Version?: Git Master
Contact:

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jojo » 11 Jan 2019, 14:17

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™ 6, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com :: Share your ideas

jff
OTRS newbie
Posts: 48
Joined: 23 Mar 2016, 14:17
OTRS Version?: 6.0.8
Real Name: Jeff
Company: M

Re: OTRS 6.0.8 - Date Field with Timezone Difference

Post by jff » 11 Jan 2019, 15:14

Thank you Jojo.

Post Reply