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

Time format

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Time format

Post by laulau »

Hi,
How does Cumulus write time in log files in 12h format ?
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Time format

Post by steve »

It always uses 24-hour format, as is correct for meteorology. Or it should do, anyway. Anywhere that Cumulus doesn't use 24-hour time is unintentional - I know a few got through by accident in some of the displays and use the Windows system format.

But I can't change the formats of dates or times in the log files now anyway.
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Time format

Post by laulau »

So if I understand well to convert "15/01/14 12:30 p 53.0 (etc)" to Cumulus log format the result should be "15/01/14,00:30, (etc)"?
Laurent

Image
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Time format

Post by steve »

laulau wrote:So if I understand well to convert "15/01/14 12:30 p 53.0 (etc)" to Cumulus log format the result should be "15/01/14,00:30, (etc)"?
Ah, I see, you're converting files.

Yes, the date has to be dd/mm/yy (but the slash could be any other valid date separator), and the time has to be hh:mm.

"12:30 p" is in the afternoon (pm), so it's 12:30, not 00:30
Steve
User avatar
laulau
Posts: 678
Joined: Tue 13 Oct 2009 10:52 pm
Weather Station: WeatherDuino Pro2
Operating System: Win 7
Location: Meyenheim, Alsace, FR
Contact:

Re: Time format

Post by laulau »

Yes indeed :bash:
Thanks
Laurent

Image
tmc4242
Posts: 3
Joined: Sun 01 Dec 2013 9:13 pm
Weather Station: Ambient 2080
Operating System: Win 7 pro
Location: Mesquite, TX, USA

Re: Time format

Post by tmc4242 »

I have my Win7 system date format set to ddd MM/dd/yy

Cumulus will start normally if I delete the data directory and reinstall. Once.

Restarts cause a crash.

exception number : 1
exception class : EVariantTypeCastError
exception message : Could not convert variant of type (UnicodeString) into type (Date).

( entire bugreport file available if wanted. )

Seems this should be an error check and a stripping off of the day label first. Can that be implemented ?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Time format

Post by steve »

I have my Win7 system date format set to ddd MM/dd/yy
Is that your short date format?

Please zip up the diags folder and attach it, together with the bugreport.txt file.
Steve
tmc4242
Posts: 3
Joined: Sun 01 Dec 2013 9:13 pm
Weather Station: Ambient 2080
Operating System: Win 7 pro
Location: Mesquite, TX, USA

Re: Time format

Post by tmc4242 »

Confirm. Short date format, displaying in the toolbar as Sat 02/01/14

Error repeatably reproduced as well.
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Time format

Post by steve »

It looks like your short date format is actually "ddd MM dd yy". It could just be that Windows sees the first space and sets the date separator to a space, so the format that Cumulus gets has all spaces in it:

Sat 02 01 14 00:07:17.933 : Short date format: Sat 02 01 14
Sat 02 01 14 00:07:17.933 : Long date format: 01 February, 2014

In the place where it's crashing, it's using Windows routines to interpret the dates in the today.ini file which were written earlier using Windows routines, and apparently Windows is unable to recognise the strings that it wrote itself as dates.

In addition, Cumulus itself won't work with a short date format which has spaces in it, it expects one of the standard regional formats with a separator that isn't a space. The entries in the log files will have spaces in the dates, and this will cause problems when reading the data back in at start up.

It would be a large change to get Cumulus to work with a short date format with a space in it, including writing my own routines to replace the standard Windows ones, which themselves don't handle the spaces in the date format; so I'm afraid it's not something I'll be able to do any time soon - sorry.
Steve
tmc4242
Posts: 3
Joined: Sun 01 Dec 2013 9:13 pm
Weather Station: Ambient 2080
Operating System: Win 7 pro
Location: Mesquite, TX, USA

Re: Time format

Post by tmc4242 »

My date format is exactly as I said. Only one space, that after "ddd". The rest of the delinators are the usual "/".

Replacing the space with a "-" changed nothing, for whatever that's worth.

Thanks for taking a look.
Post Reply