Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.28.5 (build 3282) - 23 February 2024

Legacy Cumulus 1 release v1.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

space after dot in date

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

User avatar
vpokroglo
Posts: 101
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

space after dot in date

Post by vpokroglo »

I have many problems on my templates because weird display of date in my language - sl_SI.
first 3 rows from today.ini...

Code: Select all

#Last updated: 3. 12. 2023 11:25:37
[General]
Date=3. 12. 2023
where does cumulus get this format of date display with space after dot? 3. 12. 2023.

i have already edited locale files and regenerated locales on raspbery, but no luck...
Image
User avatar
HansR
Posts: 5778
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: space after dot in date

Post by HansR »

There is a setting for this problem: Program Settings=>Culture Over-rides=> tick 'Remove space character from date separators (if present)'

(and the space comes from the official locale time format for Slovenia)
Hans

https://meteo-wagenborgen.nl
CMX build 3278 ● Ecowitt GW1100/WS80/WH40 ● RPi 3B+ ● Raspberry OS 6.1.21 ● Mono 6.12.0.200
https://meteo-wagenborgen.nl/CMX4/NET8/ (beta)
CMX build 4003+ ● RPi 4B ● RPi OS 6.1.0-rpi7-rpi-v8 aarch64 ● dotnet 8.0.1
User avatar
vpokroglo
Posts: 101
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

Re: space after dot in date

Post by vpokroglo »

Yes I know this setting, but it only affects log files and dayfile file. I want to remove space in today.ini file, where Program Settings=>Culture Over-rides=> tick 'Remove space character from date separators (if present)' setting doesn't have effect.
Image
User avatar
HansR
Posts: 5778
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bullseye
Location: Wagenborgen (NL)
Contact:

Re: space after dot in date

Post by HansR »

vpokroglo wrote: Sun 03 Dec 2023 11:38 am Yes I know this setting, but it only affects log files and dayfile file. I want to remove space in today.ini file, where Program Settings=>Culture Over-rides=> tick 'Remove space character from date separators (if present)' setting doesn't have effect.
I see. Well, that would be a request I suppose ;)
Hans

https://meteo-wagenborgen.nl
CMX build 3278 ● Ecowitt GW1100/WS80/WH40 ● RPi 3B+ ● Raspberry OS 6.1.21 ● Mono 6.12.0.200
https://meteo-wagenborgen.nl/CMX4/NET8/ (beta)
CMX build 4003+ ● RPi 4B ● RPi OS 6.1.0-rpi7-rpi-v8 aarch64 ● dotnet 8.0.1
User avatar
mcrossley
Posts: 12563
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: space after dot in date

Post by mcrossley »

Or switch to using a locale that uses just a dot separator? I'm not sure why you would be really concerned with the contents of the ini files though.
User avatar
vpokroglo
Posts: 101
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

Re: space after dot in date

Post by vpokroglo »

If I switch to another locale, what I have already tried in the past, I get many other problems, the biggest is month names. I am concerned about ini files, because I use Saratoga template... The root problem is: viewtopic.php?t=21624
Image
User avatar
mcrossley
Posts: 12563
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: space after dot in date

Post by mcrossley »

I think that data is coming from the CUtags.php file not the ini files. The CUtags.php file contains web tags that MX processes, so you could change the date format on all the date web tags - a real pain I know.

Adding the parameter for either date, or date/time ->

Code: Select all

format="dd'.'MM'.'yyy"
format="dd'.'MM'.'yyy hh:mm:ss"
But I can also think about extending the remove space locale dates option in future release to cover web tag output as well.
User avatar
mcrossley
Posts: 12563
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: space after dot in date

Post by mcrossley »

OK, I have reviewed the code and the intention of that Program setting was to change the format everywhere, but it is only changing it for some circumstances and not others.

The si_Sl locale defines the following formats that involve the ". " separator...

Code: Select all

    FullDateTimePattern: "dddd, dd. MMMM yyyy HH:mm:ss"
    LongDatePattern: "dddd, dd. MMMM yyyy"
    MonthDayPattern: "d. MMMM"
    ShortDatePattern: "d. MM. yyyy"
I'll change the ShortDatePattern to "d.MM.yyyy" so the default web tag date formats work, but would you change any of the others?
User avatar
vpokroglo
Posts: 101
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

Re: space after dot in date

Post by vpokroglo »

For now, I have noticed issues only with ShortDatePattern: "d. MM. yyyy".
Image
User avatar
mcrossley
Posts: 12563
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: space after dot in date

Post by mcrossley »

Thanks, that is what I thought This is now fixed for the next release.
User avatar
vpokroglo
Posts: 101
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

Re: space after dot in date

Post by vpokroglo »

I have installed the new release today, but I get error when checking remove space in culture options...
more in attachment.
You do not have the required permissions to view the files attached to this post.
Image
SamiS
Posts: 350
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: space after dot in date

Post by SamiS »

To exclude possible browser caching issue, please test in private browsing window or with a different browser.
User avatar
vpokroglo
Posts: 101
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

Re: space after dot in date

Post by vpokroglo »

caching is not a problem.
Image
User avatar
mcrossley
Posts: 12563
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: space after dot in date

Post by mcrossley »

Hmm, what OS are you running on?
User avatar
vpokroglo
Posts: 101
Joined: Thu 24 Feb 2011 7:45 pm
Weather Station: WS-2350
Operating System: Raspberry Pi 2
Location: Slovenija
Contact:

Re: space after dot in date

Post by vpokroglo »

Raspbian GNU/Linux 11 (bullseye)
Image
Post Reply