Page 1 of 1

How can I change the date format

Posted: Mon Mar 14, 2011 5:28 am
by Box293
When I am scheduling downtime on a host or service the date format is US.

How can I change the date format that is used by Nagios?
Scheduled Downtime Date Format.png

Re: How can I change the date format

Posted: Mon Mar 14, 2011 3:36 pm
by mguthrie
You can change this in XI in your Configure->My Account settings, and I'm not sure how affects the Core interface underneath, but I know the config setting is located in the /usr/local/nagios/etc/nagios.cfg file.

date_format=us


Try changing it in XI first, and see if that fixes it, if not here are the options for the nagios.cfg file:
us MM/DD/YYYY HH:MM:SS 06/30/2002 03:15:00
euro DD/MM/YYYY HH:MM:SS 30/06/2002 03:15:00
iso8601 YYYY-MM-DD HH:MM:SS 2002-06-30 03:15:00
strict-iso8601 YYYY-MM-DDTHH:MM:SS 2002-06-30T03:15:00

Re: How can I change the date format

Posted: Mon Mar 14, 2011 5:52 pm
by Box293
It was the nagios.cfg file that needed updating.

Change was immediate, no reboot or restarting of services required.

This would be a good configuration option to have in the GUI.

Re: How can I change the date format

Posted: Tue Mar 15, 2011 9:33 am
by rdedon
Box293 wrote:It was the nagios.cfg file that needed updating.

Change was immediate, no reboot or restarting of services required.

This would be a good configuration option to have in the GUI.
Good point and I agree that this would be a very nice little feature to add.