Re: Getting the correct time on Raspberry-Pi
Amos Shapira <[email protected]> Thu, 17 Jul 2014 17:32:41 +1000
| Newsgroups | gmane.org.user-groups.slug.general |
|---|---|
| Message-ID | <CAF9n_WWRhUvW24a5phDXSmPB_GOZ77Xsh6P66BD7-2=qCVM3jg@mail.gmail.com> |
Which distribution is it? The method to set system timezone depends on the answer to this question. And BTW - what you are asking about is setting the time ZONE. Setting the correct time is usually a matter left to NTP. On 17 July 2014 10:51, David Lyon <[email protected]> wrote: > I'm trying to get the correct datestamp in a logfile for Raspberry-Pi for a > server task. > > The task runs under supervisord with root permissions. > > I modified /root/.profile and added TZ='Australia/Sydney'; export TZ > > However, in Python, the logging/task doesn't see dates with the correct > timezone delta added. > > How can I get this to work? > -- > SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ > Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html > -- [image: View my profile on LinkedIn] <http://www.linkedin.com/in/gliderflyer> -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html