Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Cumulus MX Dashboard - 12hr time format?
Moderator: mcrossley
-
stefanbagnato
- Posts: 159
- Joined: Sun 08 May 2016 9:11 pm
- Weather Station: Vantage Pro 2
- Operating System: Windows Server 2019
- Location: Raleigh, NC
Cumulus MX Dashboard - 12hr time format?
Is there a way to change the dashboard time format to 12hr from 24hr?
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Cumulus MX Dashboard - 12hr time format?
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.
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.
Steve
-
stefanbagnato
- Posts: 159
- Joined: Sun 08 May 2016 9:11 pm
- Weather Station: Vantage Pro 2
- Operating System: Windows Server 2019
- Location: Raleigh, NC
Re: Cumulus MX Dashboard - 12hr time format?
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.