[ZBX-26538] Unable to set 24-hour time format with pt_BR locale in Zabbix 7.0+ Created: 2025 Jun 06  Updated: 2026 Mar 13  Resolved: 2026 Mar 13

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F), Server (S)
Affects Version/s: 7.0.13, 7.2.7, 7.4.0rc2, 8.0.0alpha1
Fix Version/s: 7.0.22rc1

Type: Problem report Priority: Trivial
Reporter: Gabriel Galvão Assignee: Jurijs Klopovskis
Resolution: Fixed Votes: 0
Labels: 24-hour, format, frontend, time, timezone, usability
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2025-06-06-08-44-07-419.png     PNG File image-2025-06-06-09-23-10-396.png     PNG File image-2025-06-06-09-24-58-428.png     PNG File image-2025-06-06-09-37-22-656.png     PNG File image-2026-01-08-15-29-49-176.png     PNG File image-2026-02-11-17-39-53-760.png     PNG File image-2026-03-13-15-41-52-290.png    
Team: Team INT
Sprint: Support backlog
Story Points: 0.125

 Description   

According to this article (see screenshot below), up until Zabbix version 6.4, the interface used a 24-hour time format by default, even when using the en_US locale. Starting with Zabbix 7.0, the timestamp format is expected to follow the locale associated with the selected language.

Expected time format by locale:

en_US → 12-hour format (AM/PM)

en_GB → 24-hour format

pt_BR → 24-hour format (as commonly used in Brazil)

Observed behavior:

  • When setting the language to en_GB, the interface correctly displays timestamps in 24-hour format.
  • However, when changing the language to pt_BR, the interface still displays times in 12-hour format (AM/PM), which is inconsistent with the expected behavior for this locale. See the screenchots below.

Additionally, I found this issue (screenshot below), where a user also reported being unable to switch to the 24-hour format, even when using appropriate locales.

Expected behavior:

Timestamps should follow the selected locale and display in 24-hour format when using pt_BR.

Actual behavior:

Timestamps are shown in 12-hour format (AM/PM) when using pt_BR, despite this not being standard for Brazilian Portuguese.



 Comments   
Comment by Alexander Vladishev [ 2025 Nov 18 ]

Yes, the time format is incorrect here. It needs to be changed to "H:i".

https://translate.zabbix.com/pt-BR/zabbix-70/LC_MESSAGES/frontend.po/?search=h%3Ai+A&string=160094

This issue does not exist in versions 7.2 and higher.

Comment by Jurijs Klopovskis [ 2025 Nov 19 ]

Fixed in 7.0 branch.

Newer branches seem fine.

Comment by Gabriel Galvão [ 2026 Jan 08 ]

Hello,

I’m reopening this issue because the problem was not fully fixed.

After the fix, the AM/PM markers were removed, however timestamps are still displayed in a 12-hour format, just without AM/PM, when using the pt_BR locale. See the screenchots below.

This results in ambiguous timestamps and does not match the Brazilian Portuguese standard, which is strictly 24-hour format.

Comment by Alexander Vladishev [ 2026 Jan 08 ]

gabrielgalvao, Thanks for the feedback. We did indeed specify an incorrect time format. We’ll fix it.

Comment by Jurijs Klopovskis [ 2026 Jan 09 ]

Fixed here: https://translate.zabbix.com/pt-BR/zabbix-70/LC_MESSAGES/frontend.po/?search=h%3Ai+A&string=16009

Comment by Alexander Vladishev [ 2026 Jan 11 ]

Will be available in the nearest release of 7.0.

Comment by Gabriel Galvão [ 2026 Feb 11 ]

Hello, I’m reopening this issue again because it has not been fully resolved in the latest Zabbix version (7.0.23).

With the pt_BR locale, only the most recent marker (the rightmost one) displays timestamps in 24-hour format. The other markers are still rendered in a 12-hour format, but without the AM/PM suffix, as shown in the screenshot below.

This results in ambiguous timestamps and does not match the Brazilian Portuguese standard, which uses a strict 24-hour clock.

Comment by Gabriel Galvão [ 2026 Mar 13 ]

Hello, after the latest Zabbix release (7.0.24), this issue has been fully resolved.

With the pt_BR locale, timestamps in the graphs are now displayed in 24-hour format.

Thank you for all your support!

Generated at Sat May 09 18:10:32 EEST 2026 using Jira 10.3.18#10030018-sha1:5642e4ad348b6c2a83ebdba689d04763a2393cab.