Quite likely will fix itself once beyond 30 days since DST changeover given 
that .length simply takes the difference in the start and stop timestamps 
of the span. Unfortunately no simple or neat solution given WeeWX is not 
daylight saving aware. 

But I wonder what really is  the issue here? I expect the $span .length tag 
to show the 'wrong' result, but I suspect the corresponding $span.rain.sum 
tag used to display the last 30 days rain will in fact be correct. So I 
suspect the issue is just with the label. You are manually setting the 
day_delta to 30, why not simply hard code the label or use a little cheetah 
python and set a variable to 30 and then use that variable in the 
$span(day_delta=xxx).span.sum tag to produce the last 30 days rain and then 
again to display the span in days. I expect that '24h' and '72h' would 
suffer from similar problems, though probably not as noticeable due to the 
short elapsed time until the issue resolves itself for those spans.

Gary



On Tuesday, 22 April 2025 at 07:24:23 UTC+12 [email protected] wrote:

> Hello,
>
> $span(day_delta=30).length.day.format("%d")
>
> yields "29 days". I think this is because of the DST change in the 
> station's time zone which was about three weeks ago, it used to show "30 
> days", and I am confident it will again show "30 days", after the DST 
> change is more than 30 days ago.
> [image: 2025-04-21 21_16_53-The weather in AT, Salzburg, Hallein, Rif.png]
> How would "DST-safe" expression look like?
>
>
>

-- 
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/e73fbac9-71c2-4f62-8eee-02fe2bc2287cn%40googlegroups.com.

Reply via email to