Hi Peter, I was looking at https://docs.python.org/3/library/datetime.html#datetime.datetime.utcnow <https://www.google.com/url?q=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fdatetime.html%23datetime.datetime.utcnow&sa=D&sntz=1&usg=AFQjCNEGwejuUUDBX6cYyPGLBJueLz2Ckw>
but I couldn't figure out how to call it from the tag. I'm still a newbie at this. Thanks, Eric On Thursday, May 16, 2019 at 3:54:13 PM UTC-7, p q wrote: > > 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 > <https://www.google.com/url?q=https%3A%2F%2Fdocs.python.org%2F3%2Flibrary%2Fdatetime.html%23datetime.datetime.utcnow&sa=D&sntz=1&usg=AFQjCNEGwejuUUDBX6cYyPGLBJueLz2Ckw> > > 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/28c8b185-6ca2-4e1a-b16e-d6ad70fe9149%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.