Non-US date formats in CGIs

Ton Voon ton.voon at altinity.com
Wed Nov 23 22:17:01 CET 2005


On 23 Nov 2005, at 16:36, Ian Chard wrote:

> Ton Voon wrote:
>>
>> On 23 Nov 2005, at 16:23, Ian Chard wrote:
>>
>>> Is there any way to coax the CGIs, specifically when you set   
>>> downtimes,
>>> so that they use the British date format (DD/MM/YYYY)?
>>
>>
>> Check nagios.cfg for the line:
>>
>> date_format=euro
>
> Hmm, at the moment I have "date_format=iso8601", but I still get
> dates of the form "11/23/2005" when I go to set downtime.  AIUI
> iso8601 should give YYYY-MM-DD format.
>

Looks like the cmd.cgi does not respect the date_format setting. Try  
this patch:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: downtime.patch
Type: application/octet-stream
Size: 4848 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051123/8d0787fc/attachment.obj>
-------------- next part --------------

Works for me, though I notice that the scheduled downtime comments do  
not respect the date_format parameter either.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon




More information about the Users mailing list