How to define date format on ticket view?

Moderator: crythias

Post Reply
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

How to define date format on ticket view?

Post by hkais »

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
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO users
skullz
Znuny superhero
Posts: 618
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?

Post by skullz »

By default, its depends on language preferences.

Eng US = mm/dd/yyyy
Eng UK = dd/mm/yyyy
root
Administrator
Posts: 3934
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?

Post by root »

Hi,

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 ?
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: How to define date format on ticket view?

Post by hkais »

skullz wrote: 18 Oct 2021, 09:25 By default, its depends on language preferences.

Eng US = mm/dd/yyyy
Eng UK = dd/mm/yyyy
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
root
Administrator
Posts: 3934
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?

Post by root »

hkais wrote: 18 Oct 2021, 13:04
skullz wrote: 18 Oct 2021, 09:25 By default, its depends on language preferences.

Eng US = mm/dd/yyyy
Eng UK = dd/mm/yyyy
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?
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 ?
hkais
Znuny expert
Posts: 280
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: How to define date format on ticket view?

Post by hkais »

root wrote: 18 Oct 2021, 13:11 Hi,

Yes, and it's not called strange, it's called internationalization. And it can be changed with a custom language file.

- Roy
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
root
Administrator
Posts: 3934
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?

Post by root »

hkais wrote: 23 Oct 2021, 18:53 anyway, how can I configure a custom language file to use US english with ISO date format?
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 ?
Post Reply