I have %-I:%M %p and I get uppercase AM/PM.

I asked Claude.ai and it says (and I'm not sure I believe it!) that %p
gives uppercase AM/PM and %P gives lowercase on Linux.

On Sat, Feb 7, 2026 at 6:12 PM Rod in Edm <[email protected]> wrote:

> Long time WView/Weewx user. Running Weewx 5.2.0 / Seasons skin 5.2.0 on
> RPi4B with RaspberryPi OS 64-bit Trixie. Fresh install of Trixie / Weewx
> 5.2.0 on Pi4, using Weewx Simulator for now (Vantage 2 is real hardware
> target). Locale configured on Weewx install as Ottawa (Canada) and
> Edmonton/America, English (essentially MST).
>
> Trying to format report and graphical image time  to give me "12:05:34
> PM". To get this in reports, I'm replacing "%x.%X" in weewx,conf =>
> StdReport => Defaults => Units => TimeFormats with
>
> hour        = %I:%M:%S %p
> etc
>
> and then restarting weewx (and when that didn't work, stopping weewx and
> rebooting the RPi4B). I'm getting "12:05:34 pm",  instead of "12:05:34 PM"
> in my reports.
>
> Since Weewx uses strftime() directives to format time, and that function's
> manual page shows "%p" as the format for "PM". I'm not sure what's going
> on. After reading the strftime() directives doc more carefully, I figured
> I'd try "%P" ... but that didn't make any difference. I get that locale
> plays a role in this formatting.
>
> NOT the end of the world, but annoying that I can't dope out what appears
> to be a simple problem. Did a search of the forum posts using a mixture of
> keywords, but I don't see anything relevant - so I assume I'm just doing
> something stupid.
>
> What am I missing here?
> Rod
>
> --
> 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/81164eb0-9295-4eb7-a5ed-39ec81bc9926n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/81164eb0-9295-4eb7-a5ed-39ec81bc9926n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM21OB9D_t3bk9OmT2Y3ppD8bRRhk5ZfUJ_rMUKasm413DQ%40mail.gmail.com.

Reply via email to