Hi there,
how can I configure a standard date display in the UI of OTRS?
Right now the dates get displayed in confusing English format. (mm/dd/yyyy)
I would like to use ISO date as a default
How to define date format on ticket view?
Moderator: crythias
-
- Znuny expert
- Posts: 287
- Joined: 16 Apr 2016, 08:55
- Znuny Version: see in post
- Real Name: Hans
- Contact:
How to define date format on ticket view?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
-
- Znuny superhero
- Posts: 624
- Joined: 24 Feb 2012, 03:58
- Znuny Version: LTS and Features
- Real Name: Mo Azfar
- Location: Kuala Lumpur, MY
- Contact:
Re: How to define date format on ticket view?
By default, its depends on language preferences.
Eng US = mm/dd/yyyy
Eng UK = dd/mm/yyyy
Eng US = mm/dd/yyyy
Eng UK = dd/mm/yyyy
-
- Administrator
- Posts: 3968
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: How to define date format on ticket view?
Hi,
You might try a custom language file to change the settings: https://github.com/znuny/Znuny/blob/dev ... /de.pm#L23
- Roy
You might try a custom language file to change the settings: https://github.com/znuny/Znuny/blob/dev ... /de.pm#L23
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny expert
- Posts: 287
- Joined: 16 Apr 2016, 08:55
- Znuny Version: see in post
- Real Name: Hans
- Contact:
Re: How to define date format on ticket view?
Not sure if I got it?
Date format is hard coupled with the language setting?
Have I understood it well?
So if your team has to work in US English, but they work internationally distributed, they all have to use the strange mm/dd/yyyy format?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
-
- Administrator
- Posts: 3968
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: How to define date format on ticket view?
Hi,
Yes, and it's not called strange, it's called internationalization. And it can be changed with a custom language file.
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
-
- Znuny expert
- Posts: 287
- Joined: 16 Apr 2016, 08:55
- Znuny Version: see in post
- Real Name: Hans
- Contact:
Re: How to define date format on ticket view?
You are right, that you need a good internationalization. But I do not see the need to hard couple language and number and date formats to a language.
If you check any OS you will see a user can configure it independently. All modern language api also allow this to decide specifically. just my 2ct
anyway, how can I configure a custom language file to use US english with ISO date format?
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
-
- Administrator
- Posts: 3968
- Joined: 18 Dec 2007, 12:23
- Znuny Version: Znuny and Znuny LTS
- Real Name: Roy Kaldung
- Company: Znuny
- Contact:
Re: How to define date format on ticket view?
Hi,
It's been described here: https://doc.znuny.org/doc/manual/develo ... guage-file
The easiest way is to use Kernel/Language/xx_Custom.pm as a template for Kernel/Language/en_Custom.pm
- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?
Use a test system - always.
Do you need professional services? Check out https://www.znuny.com/
Do you want to contribute or want to know where it goes ?