Is it possible to change the date format to: MM/DD/YYYY
and
Time to HH:MM 12 hour clock
Whe I write out to the HTML templates?
I have done a search through the forum and found some material on the local machine format and my local machine is set to how I prefer it.
No big deal just thought it would be another excuse to go in and tweak my page.
Thanks
Bob
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
Date and Time Format Change
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Date and Time Format Change
Which dates aren't coming out in that format? It should be using your machine format for most dates?
12-hour time format is tricky with the Cumulus code as it stands now; I didn't envisage anyone wanting to use that format, as 24-hour format is pretty much the meteorological standard. I think you would have to use some javascript (or something like that) to convert.
12-hour time format is tricky with the Cumulus code as it stands now; I didn't envisage anyone wanting to use that format, as 24-hour format is pretty much the meteorological standard. I think you would have to use some javascript (or something like that) to convert.
Steve
-
PCBob
- Posts: 12
- Joined: Mon 03 May 2010 11:19 am
- Weather Station: Davis Vantage Vue
- Operating System: Windows XP
Re: Date and Time Format Change
I'll scratch the 12 hour deal.
What I see in the DD MM YYYY format is mostly the all time records like:
<#TrrateM>
<#TrfallhH>
<#TrfallH>
<#TrfallmH>
I would like them and all the dates to be mmddyyyy which is how my PC system clock is set.
Thanks for any tips
Bob
What I see in the DD MM YYYY format is mostly the all time records like:
<#TrrateM>
<#TrfallhH>
<#TrfallH>
<#TrfallmH>
I would like them and all the dates to be mmddyyyy which is how my PC system clock is set.
Thanks for any tips
Bob
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Date and Time Format Change
Ah, yes, the all-time record dates are actually all in the format "24 February 2010", with the full string being something like "at 05:19 on 24 February 2010", which is, I admit, somewhat inflexible. It was my attempt at creating a format which didn't have the usual US vs Rest of the World ambiguity. At the moment, I think the only way you could alter that is by javascript (read in the string, parse it, write it back out in your chosen format). I guess in the longer term, I could introduce more web tags for those with alternative formats, or perhaps better, a way of configuring the format.
Steve
-
PCBob
- Posts: 12
- Joined: Mon 03 May 2010 11:19 am
- Weather Station: Davis Vantage Vue
- Operating System: Windows XP
Re: Date and Time Format Change
No worries Steve at all, just wanted to make sure I wasn't missing something simple. If I can't look for things to tweak it's not a hobby right?
Take care
Take care
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Date and Time Format Change
Absolutely. You could always have a play with javascript, it's something I want to do but haven't had the time.PCBob wrote:No worries Steve at all, just wanted to make sure I wasn't missing something simple. If I can't look for things to tweak it's not a hobby right?
Steve