Blake Garner <[email protected]> writes:

> I want to change the timezone from UTC to Pacific time display in local 
> time on my weewx website. From reading, it seems that weewx uses the system 
> time and it's not configurable at the application. After changing my system 
> timezone to US/Pacific I'm seeing this message spew in the logs. For now I 
> flipped the timzone back until I have a better idea of what's going on. 
>
> Oct 16 23:24:38 wx python3[2833293]: *weewx[2833293] WARNING weewx.engine: 
> Ignore historical record: {'dateTime': 1665970800, 'usUnits': 1, 

$ TZ=UTC date -r 1665970800
Mon Oct 17 01:40:00 UTC 2022

So without knowing what the highest value is, hard to interpret.



I'm not totally clear on this, but I think what's happening is:

  database is always in UTC

  VP2 does not have a protocol that is always UTC and display localtime;
  it fundamentally operates in local time

  driver infers VP2 clock time as local time, in this case UTC

  Yes, report generation follows timezone

My weewx machine (RPI3, NetBSD 9, with VP2) is set to EST5EDT.


So therefore I guess that your VP2 is running in UTC, even if it thinks
it is s PST8PDT which might mean that the data in the database is
correct, but

  - the time on the console is 7 hours ahead (now)
  - the daily high/low values are not for localtime midnight-midnight
  - the data in the database is actually right.

  - I have no idea what's going on with console DST settings.

To recover, I wonder if you need to somehow pause the console for 7h.
Or if just changing the time on the console as you flip the TZ is
enough.

Or if I'm wrong about labeling on database records being ok, and you
need to do surgery.

I'm sure someone has had this problem; definitely wait for better
advice, but this may give you things to think about and try to
understand, even if my guesses are a bit off.

Definitely back up your database right now, and also before you tried to
change the TZ the first time :-(

-- 
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 on the web visit 
https://groups.google.com/d/msgid/weewx-user/rmimt9v2stl.fsf%40s1.lexort.com.

Attachment: signature.asc
Description: PGP signature

Reply via email to