Xymon Mailing List Archive search

display holidays in MM/DD format, instead of DD/MM

3 messages in this thread

list Tom Georgoulias · Tue, 22 Jan 2008 09:46:58 -0500 ·
Is there any way to configure the holiday date format that appears in 
the Info column?  I'd like to show the dates in MM/DD format instead of 
DD/MM, if possible.

Thanks,
Tom
list Henrik Størner · Tue, 22 Jan 2008 16:05:06 +0100 ·
quoted from Tom Georgoulias
On Tue, Jan 22, 2008 at 09:46:58AM -0500, Tom Georgoulias wrote:
Is there any way to configure the holiday date format that appears in the 
Info column?  I'd like to show the dates in MM/DD format instead of DD/MM, 
if possible.
Tom, you're running a snapshot - then you're obliged to read the source
code before asking questions like that :-)

HOLIDAYFORMAT is the hobbitserver.cfg setting you're after, it's a
formatting string for the "strftime()" routine, so you should set it
to "%m/%d".


Regards,
Henrik
list Tom Georgoulias · Tue, 22 Jan 2008 10:51:16 -0500 ·
quoted from Henrik Størner
Henrik Stoerner wrote:
On Tue, Jan 22, 2008 at 09:46:58AM -0500, Tom Georgoulias wrote:
Is there any way to configure the holiday date format that appears in the Info column?  I'd like to show the dates in MM/DD format instead of DD/MM, if possible.
Tom, you're running a snapshot - then you're obliged to read the source
code before asking questions like that :-)
Excellent response!  :)  I will make sure I do that for my next question.  I didn't see that setting because I did a test upgrade from 4.2 and my old hobbitserver.cfg file remained in place.  Variable changed and it works like a charm.

Tom