[ZBXNEXT-7614] Allow configuring date and time format independenly of locale setting Created: 2022 Apr 08  Updated: 2024 Jul 10

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F)
Affects Version/s: None
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Jurijs Klopovskis Assignee: Zabbix Development Team
Resolution: Unresolved Votes: 5
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Team: Team B

 Description   

Currently we use 24 hour time and Year/Month/Day date format in frontend.

// Date and time format separators must be synced with setSDateFromOuterObj() in class.calendar.js.
define('ZBX_FULL_DATE_TIME',   'Y-m-d H:i:s'); // Time selector full date and time presentation format.
define('ZBX_DATE_TIME',          'Y-m-d H:i'); // Time selector date and time without seconds presentation format.
define('ZBX_DATE',          'Y-m-d'); // Time selector date without minutes and seconds presentation format.

Suggest allowing to configure that.



 Comments   
Comment by Jurijs Klopovskis [ 2022 Apr 08 ]

Possibly related to https://support.zabbix.com/browse/ZBX-19580

Comment by Dan Snis [ 2024 Jul 10 ]

It's not related.

What this issue is, is more a feature request to separate time settings from the locale.

For example: I want the english language, the US variant. But since I live in Sweden I want to have 24h time and not the m/d/y date format. The best would be if I could choose for myself, ie YYMMDD, DD-mmm-YYYY, etc.

 

Yes, I know the answer is to switch to en_GB.. but I want color to be spelled color and not colour.

Generated at Fri May 08 18:24:22 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.