Zabbix 24-Hour Time Format



Introduction

Zabbix is a powerful monitoring tool that by default installs with English (US) locale settings, which means time is displayed in the 12-hour AM/PM format. For users who are used to the 24-hour format, this can be inconvenient. To display time in the 24-hour format on dashboards and graphs, we need to change the locale settings to English (en_GB). This article explains how to properly configure the server to use the en_GB.UTF-8 locale and ensure that time is shown correctly on Zabbix graphs.

Checking Current Settings

To check the current GUI language settings, go to Administration → General, then open the GUI tab. The current interface language will be shown in the Default language field. If locales are not installed on the server, you may see the message: You are not able to choose some of the languages, because locales for them are not installed on the web server.

This indicates that you need to configure locales on the server.

Locale Configuration

To view the installed locales on your Linux system, run:

locale -a

Example output:

C  
C.utf8  
en_US.utf8  
POSIX

As we can see, only the US locale is currently available. To install additional locales, run:

sudo dpkg-reconfigure locales

A graphical interface will open. Use the keyboard to select en_GB.UTF-8 by navigating with the arrow keys and pressing space to mark the selection. Then press Tab to choose OK and hit Enter.

Next, you’ll be asked to choose the default locale. Select en_GB.UTF-8 again and confirm.

Console output:

Generating locales (this might take a while)...
  en_GB.UTF-8... done
  en_US.UTF-8... done
Generation complete.

Restart Apache:

sudo systemctl restart apache2

Important: Even though the new locale is now available and the web server is restarted, the time format on graphs still won’t change unless we update the locale environment variables system-wide.

Edit the file:

sudo nano /etc/default/locale

Ensure it contains:

LANG=en_GB.UTF-8  
LC_ALL=en_GB.UTF-8  
LANGUAGE=en_GB.UTF-8

Then reboot the server (in my case, a Raspberry Pi):

sudo reboot

After rebooting, Zabbix will begin displaying time in the 24-hour format on graphs.

Conclusion

System locale settings significantly impact the usability and clarity of monitoring dashboards like Zabbix. As shown, simply changing the language in the GUI is not enough – you must also properly configure the server locale and restart the system. With the correct settings in place, the time on graphs will now follow the 24-hour format, making the interface more familiar and easier to interpret for users in many parts of the world.