Well, all weewx does is use strftime. Basically,

time.strftime("%x %X"), time.localtime(v))


We will need to see the log to go any farther. Stop weewx, set debug=1,
restart, post the log through the first reporting cycle.

-tk



On Mon, Jul 15, 2019 at 6:12 AM Kike .Asekas <[email protected]> wrote:

> The current local time correctly.
>
> El lunes, 15 de julio de 2019, 15:07:45 (UTC+2), Thomas Keffer escribió:
>>
>> What do you get if you try
>>
>> python -c "import time; print time.strftime('%x %X')"
>>
>> -tk
>>
>> On Mon, Jul 15, 2019 at 4:56 AM Kike .Asekas <[email protected]> wrote:
>>
>>> 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/649312fb-f97d-484e-9815-7b4f814a9e75%40googlegroups.com
>>> <https://groups.google.com/d/msgid/weewx-user/649312fb-f97d-484e-9815-7b4f814a9e75%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>> --
> 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/2973beaf-baee-4682-b370-98b204c4e77e%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/2973beaf-baee-4682-b370-98b204c4e77e%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAPq0zED1z9X7vnsQceEQ%2BGCqdwzj5%3DARGjuZL5sZfZhxdngwfA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to