I imagine your Raspberry Pi is using UTC as its base time and using the 
time zone to display the local time. That's the standard way it's set up.

I haven't tried it but you might be able to use the python function 
datetime.utcnow() 
https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow

On Thursday, May 16, 2019 at 3:48:11 PM UTC-7, Eric Mears wrote:
>
> Hi,
>
> I'm running weewx on a raspberry pi connected to a Vantage weather station.
>
> I create a custom report that that National Weather Service downloads 
> hourly.
>
> The National Weather Service requires the times be in UTC.
>
>
> I'd like to run my raspberry pi on local time so the weewx reports display 
> local time.
>
> Is there an option on a Time Tag to display UTC?
>
> I'm currently using variations of 
>
> $current.dateTime.format("%H:%M %Z")
>
> in my custom report, but these all display local time.
>
>
> Do I have any options other than running the raspberry pi on UTC?
>
> Thanks,
>
> Eric
>
>
>
>
>

-- 
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/3fa6abc1-b30e-43d7-a089-b3bf0830bf4c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to