Page 1 of 1
Cumulus MX Dashboard - 12hr time format?
Posted: Mon 20 Jun 2016 1:40 pm
by stefanbagnato
Is there a way to change the dashboard time format to 12hr from 24hr?
Re: Cumulus MX Dashboard - 12hr time format?
Posted: Mon 20 Jun 2016 1:58 pm
by steve
Yes, but it requires some javascript expertise.
If you look at dashboard.js, you'll see the code for the clock:
var ticktock = function () {
var d = new Date();
var h = pad(d.getHours());
var m = pad(d.getMinutes());
var s = pad(d.getSeconds());
var current_time = [h, m, s].join(':');
$('.digiclock').text(current_time);
};
You can change that to use 12h format (but you will need to investigate for yourself how to do that, or someone may post the details).
The other times are currently hard coded into the data which is retrieved in json format. You would have parse the text and convert to 12h format. This is fairly straightforward but does require a bit of work. Again, you would need to investigate for yourself or someone here may help out.
A future release of MX is likely to have options for the date and time formatting in the user interface. I can't say when that will be.
Re: Cumulus MX Dashboard - 12hr time format?
Posted: Mon 20 Jun 2016 8:34 pm
by stefanbagnato
Thank you Steve for the info. I will look into it a bit later tonight. It is not a huge deal as I am the only one who will look at the dashboard. I am now going to start working on the website next; that is where it will really matter.