Show time in 12 hour (AM/PM) format
Posted: Mon Dec 05, 2016 7:54 am
As the subject title says, I'm wishing to display the time in a 12 hour (AM/PM) format.....can it be done?
Support for Nagios products and services
https://support.nagios.com/forum/
In case that doesn't work for you, what version of Core are you using? Did you install it from repos or compile from source? On what OS/version are you running Core? This last question will help us figure out how date's are being processed on your system.Format: date_format=<option>
Example: date_format=us
This option allows you to specify what kind of date/time format Nagios should use in the web interface and date/time macros.
Yeah, had that set already to date_format=usdwhitfield wrote:From https://assets.nagios.com/downloads/nag ... gmain.htmlIn case that doesn't work for you, what version of Core are you using? Did you install it from repos or compile from source? On what OS/version are you running Core? This last question will help us figure out how date's are being processed on your system.Format: date_format=<option>
Example: date_format=us
This option allows you to specify what kind of date/time format Nagios should use in the web interface and date/time macros.
If that does work for you, is it ok if we go ahead and lock the thread?
Code: Select all
else if(!strcmp(variable, "date_format")) {
if(!strcmp(value, "euro"))
date_format = DATE_FORMAT_EURO;
else if(!strcmp(value, "iso8601"))
date_format = DATE_FORMAT_ISO8601;
else if(!strcmp(value, "strict-iso8601"))
date_format = DATE_FORMAT_STRICT_ISO8601;
else
date_format = DATE_FORMAT_US;
}