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

date format in realtime.txt

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

date format in realtime.txt

Post by BCJKiwi »

Forgive me if this has already been covered but if so, I could not find it.

I know (and I believe I understand) the issues around the changes to the date formatting codes for MX web tags.

However I have always understood the format of date and time in realtime.txt was fixed and did not depend on the settings in windows other than in relation to the separator.

All my Windows systems for C1 and MX have always had a short date format of d/MM/YY and the day in the date in realtime.txt has always had a leading 0 if the day is less than 10.

On assisting another CumulusMX user with a custom PHP script we found a problem arose as the date in their realtime.txt did NOT have the leading 0 - their windows short date format was the same as mine. Once they changed their windows short date format to dd/MM/YY, the issue was resolved.

Is this expected behaviour? If so is there any apparent explanation for the two systems behaving differently?
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: date format in realtime.txt

Post by steve »

The code in Cumulus 1 uses this Delphi format string for the date and time in realtime.txt - 'dd/mm/yy hh:mm:ss'

As you can see from this page, that gives the day with 2 digits - http://docwiki.embarcadero.com/Librarie ... atDateTime

The code in Cumulus MX uses this .Net format string for the date and time in realtime.txt - "dd/MM/yy HH:mm:ss"

As you can see from this page, that gives the day with 2 digits - https://msdn.microsoft.com/en-us/librar ... .110).aspx

So I have no explanation to offer, other than perhaps they were not using the built-in realtime.txt file, but a 'custom' one instead?
Steve
BCJKiwi
Posts: 1259
Joined: Mon 09 Jul 2012 8:40 pm
Weather Station: Davis VP2 Cabled
Operating System: Windows 10 Pro
Location: Auckland, New Zealand
Contact:

Re: date format in realtime.txt

Post by BCJKiwi »

Thanks Steve.

Great explanation/confirmation.
Locked