Bingo! Thx Manual, I took a query from that table and didnt realize the 
timezone differences! Duh.

Solved by 
SELECT DATE(CONVERT_TZ(FROM_UNIXTIME(dateTime), 'UTC', 'Europe/Amsterdam')) 
... etc

Op zaterdag 17 oktober 2026 om 15:05:02 UTC+2 schreef Manuel Hilgert:

> That output looks correct. 1792188000 is *October 17 at 00:00 in 
> Europe/Amsterdam*, which is October 16 at 22:00 UTC. Your latest daily 
> summary row therefore represents today.
>
> The summary's dateTime stays at the start of the day while its statistics 
> are updated. The lastUpdate value corresponds to October 17 at 14:53 
> Amsterdam time, so the summaries are receiving updates today.
>
> Your SQL session uses UTC, so FROM_UNIXTIME() displays those timestamps 
> in UTC. That explains why the daily row appears to have yesterday's date. 
> No rebuild is needed based on these results.
>
>
> Maarten van der Hoeven <[email protected]> schrieb am Sa. 17. Okt. 2026 
> um 15:01:
>
>> Thx Manuel.
>>
>> Log is clear, have DEBUG on 2 and all logging (success and fail) on true. 
>> Output of sql below.
>>
>> Data in DB is in UTC. I live in GMT+2 (Europe/Amsterdam, currently in 
>> daylight saving) 
>>
>> SELECT MAX(dateTime), FROM_UNIXTIME(MAX(dateTime)) FROM archive;
>> *1792241520 | 2026-10-17 12:52:00*
>>
>> SELECT MAX(dateTime), FROM_UNIXTIME(MAX(dateTime)) FROM 
>> archive_day_outTemp;
>> *1792188000 | 2026-10-16 22:00:00*
>>
>> SELECT value, FROM_UNIXTIME(value) FROM archive_day__metadata WHERE name 
>> = 'lastUpdate';
>>
>> *1792241580 | 2026-10-17 12:53:00 *
>> SELECT @@session.time_zone, @@system_time_zone;
>> *SYSTEM | UTC*
>>
>>
>> Op zaterdag 17 oktober 2026 om 14:49:59 UTC+2 schreef Manuel Hilgert:
>>
>>> The daily summaries should include the current day. WeeWX normally 
>>> updates them whenever it adds a new archive record.
>>>
>>> The dateTime column identifies the start of the day, rather than the 
>>> time of the last update. Also, FROM_UNIXTIME() uses the MySQL session's 
>>> time zone, which may differ from WeeWX's.
>>>
>>> Could you post your WeeWX version, the time zone WeeWX runs in, and the 
>>> output of these queries against the database WeeWX is using?
>>>
>>> SELECT MAX(dateTime), FROM_UNIXTIME(MAX(dateTime))FROM archive;
>>> SELECT MAX(dateTime), FROM_UNIXTIME(MAX(dateTime))FROM archive_day_outTemp;
>>> SELECT value, FROM_UNIXTIME(value)FROM archive_day__metadataWHERE name = 
>>> 'lastUpdate';
>>> SELECT @@session.time_zone, @@system_time_zone;
>>>
>>> If the archive contains current records but lastUpdate is behind, are 
>>> there any errors from weewx.manager in the WeeWX log?
>>>
>>>
>>> Maarten van der Hoeven <[email protected]> schrieb am Sa. 17. Okt. 2026 
>>> um 14:42:
>>>
>>>> Hi,
>>>>
>>>> I noticed that all archive_day_* tables (for example 
>>>> archive_day_outTemp) are updated till the end of the previous day. To be 
>>>> precise, it's now Oct 17th, and the dateTime of every archive_day tables 
>>>> is 
>>>> Oct 15th (from_unixtime(dateTime)).
>>>>
>>>> Never noticed this before. Is this correct behaviour? I was thinking 
>>>> that the archive_day tables are also updated on the very current day.
>>>>
>>>> If this is not how it is supposed to be, what can I do to fix this?
>>>>
>>>> -- 
>>>> 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/537c8c94-2abe-4dbb-badd-0c4ec0bb3f7fn%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/537c8c94-2abe-4dbb-badd-0c4ec0bb3f7fn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> 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/8e5f4cd3-f6c8-415e-9a75-ca5cf305947en%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/8e5f4cd3-f6c8-415e-9a75-ca5cf305947en%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/0040fda0-9a90-43f3-82a4-5267bc755632n%40googlegroups.com.

Reply via email to