Yup, that was it: my locale was set up wrong for the fresh Weewx install. I
guess GB uses the lowercase "am" and "pm".
I think when I was installing Weewx on the RPi, I must have not saved my
en.CA locale selection from the list. The default on an RPi is en.GB.
Thx all for being my sounding board.
Rod
On Saturday, 7 February 2026 at 23:25:54 UTC-7 Rod in Edm wrote:
> Huh ... all your responses suggest that it must be my "locale" settings
> that are doing this to me.
>
> My aging RPi3B running Weewx 5.2.0 and Seasons 4.6.2 shows the right
> date-time format, and my new setup doesn't. There's hardly any difference
> between them (as far as I know), so the locale setting must be issue.
>
> Using Terminal (I'm on a Mac), I' entered "locale" on both systems. I'm
> frustrated by what I see:
>
> Old RPi3B system: locale displays as en.CA.UTF-8
> New RPi4B system: locale displays as en.GB.UTF-8 {WTH?!?}
>
> I must have fat-fingered the Weewx configuration during the install
> process. I'll change the new system locale to be en.CA.UTF-8 and see what
> happens. I'm pretty sure this is my problem, and if it is I'll come back
> here and confirm it to close this thread off.
>
> I hate it when I turn out to be my problem. ¯\_(ツ)_/¯
> Rod
>
> On Saturday, 7 February 2026 at 21:33:36 UTC-7 Vince Skahan wrote:
>
>> $current.dateTime.format(format_string="%c") works nicely for me.....
>>
>> Sat 07 Feb 2026 08:30:00 PM PST
>>
>> On Saturday, February 7, 2026 at 7:43:08 PM UTC-8 Nate Bargmann wrote:
>>
>>> I didn't use the %p/%P but I have this which appears at the top of my
>>> customized Standard kin:
>>>
>>> <h2>$current.dateTime.format(format_string="%a %d %b %Y %H:%M %Z
>>> (%z)")</h2>
>>>
>>> The result is:
>>>
>>> Sat 07 Feb 2026 21:35 CST (-0600)
>>>
>>> I do a similar format for the images:
>>>
>>> bottom_label_format = %a %d %b '%y %H:%M %Z
>>>
>>> Which becomes:
>>>
>>> Sat 07 Feb '26 21:35 CST
>>>
>>> I guess since I opted for 24 hour time and adding the time zone I didn't
>>> see the issue you are.
>>>
>>> - Nate
>>>
>>> --
>>> "The optimist proclaims that we live in the best of all
>>> possible worlds. The pessimist fears this is true."
>>> Web: https://www.n0nb.us
>>> Projects: https://github.com/N0NB
>>> GPG fingerprint: 82D6 4F6B 0E67 CD41 F689 BBA6 FB2C 5130 D55A 8819
>>>
>>>
--
You received this message because you are subscribed to the Google Groups
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/weewx-user/4b4556e9-21e8-4042-9f3a-02e967d910a4n%40googlegroups.com.