But in the database the datetime is in UTC timezone or in local timezone?. I datetime field in my database reflects the local time. I think sum the +2 of my timezone later.
El lunes, 15 de julio de 2019, 13:56:37 (UTC+2), Kike .Asekas escribió: > > Hello. I have a raspberry pi with raspbian. It have CEST+0200 timezone as > reported by date +"%Z %z". If I type 'date' my local time is reported > correctly, but in the reports of weewx the time is 2 hours later. I mean > if it's 10:00 the webpages say 12:00. > In python > datetime.datetime.now() gives the current local time correctly > and > datetime.datetime.utcnow()gives 2 hours before correctly too. > The database have the correct local time too. > > -- 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/485e8e20-9397-4194-9363-e0e90234138e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
