Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
Change Birdseye Clock Timeformat from 12h to 24h - Works in my Bidseye V 3.1.1 by 03/28/2016 Look for Version in /usr/local/nagiosxi/html/includes/components/birdseye/CHANGES.TXT
Current Version
Last Release Date
November 17, 2016
Owner
Godehard Matzel
Compatible With
Screenshot
In Order to have Birdseye in NagiosXI Display 24h Format instead of 12h Change the Following Block in /usr/local/nagiosxi/html/includes/components/birdseye/includes/main.js
_________________________________before:
function update_clock() { var time = new Date(); var hours = time.getHours(); var minutes = time.getMinutes(); var seconds = time.getSeconds();
minutes = ( minutes < 10 ? "0" : "" ) + minutes; seconds = ( seconds < 10 ? "0" : "" ) + seconds;
var post = ( hours < 12 ) ? "AM" : "PM"; hours = ( hours > 12) ? hours - 12 : hours; hours = ( hours == 0 ) ? 12 : hours;
var str = hours + ":" + minutes + ":" + seconds + " " + post; $('#clock').html(str); }
__________________________________after:
minutes = ( minutes < 10 ? "0" : "" ) + minutes; seconds = ( seconds < 10 ? "0" : "" ) + seconds; hours = ( hours < 10 ? "0" : "" ) + hours;
// var post = ( hours < 12 ) ? "AM" : "PM"; // hours = ( hours > 12) ? hours - 12 : hours; // hours = ( hours == 0 ) ? 12 : hours;
var str = hours + ":" + minutes + ":" + seconds //+ " " + post; $('#clock').html(str); }
You must be logged in to submit a review.
To:
From: