[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: |
|
| Team: | |
| 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:
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! |