Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed2.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.068 X-Spam-Evidence: '*H*': 0.86; '*S*': 0.00; 'mrab': 0.05; '(especially': 0.07; 'dst': 0.09; 'subject:question': 0.10; 'internally': 0.16; 'utc': 0.16; 'weird.': 0.16; 'wrote:': 0.18; 'possible,': 0.19; '>>>': 0.22; 'separate': 0.22; 'to:name:python- list@python.org': 0.22; 'regardless': 0.24; 'header:In-Reply- To:1': 0.27; 'tim': 0.29; 'message-id:@mail.gmail.com': 0.30; 'url:mailman': 0.30; 'url:wiki': 0.31; 'chase': 0.31; 'issuing': 0.31; 'operations.': 0.31; 'url:wikipedia': 0.31; 'us)': 0.31; 'linux': 0.33; 'says': 0.33; 'url:python': 0.33; 'possible.': 0.35; 'convert': 0.35; 'received:google.com': 0.35; 'really': 0.36; 'url:listinfo': 0.36; 'possible': 0.36; 'url:org': 0.36; 'should': 0.36; 'server': 0.38; 'configured': 0.38; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; '12,': 0.39; 'to:addr:python.org': 0.39; 'url:mail': 0.40; 'back': 0.62; 'soon': 0.63; 'here': 0.66; 'presented': 0.69; 'us,': 0.73; 'greece': 0.84; 'joel': 0.91; 'suffer': 0.93; '2013': 0.98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=O7Da81S+3xBlWSbaVRyHkpRkYA/Y1E2FGozXb0Ig21k=; b=h9lriHS4JWto1g5BYuYTINQGxR8Sk0iUyPOg985VKiO87ywIPUuj3adXxHxjYtQ5rK qj/wu3EhgL1znB6Op4b2WPAhiYT+ZmkzJsh1fRwXb+2PXfJkBKo+hSnyuzTdHBYDiNtL DeVxsN5U6xKDE3WrdE7P6gsO4HPzDUVmo8mVHS9M+WjQh5cnfDgwiqqnDU2k3BAEB63s phBXpGppPs99rqtT8F2RRT0QPC/B9x26xwMw6IxaKCCEFb97gQ2wikK+BocG4e+yLKut U1N1M4dbplv5gKC57vATFx/rWhpEoGbGo1haW6NGkCYB7qiI5Q4eRMsESsKoHCRnoxms ks5g== MIME-Version: 1.0 X-Received: by 10.58.232.228 with SMTP id tr4mr1651009vec.34.1384283684401; Tue, 12 Nov 2013 11:14:44 -0800 (PST) In-Reply-To: <52827CD7.3060009@mrabarnett.plus.com> References: <20131112101232.298764b5@bigbox.christie.dr> <52827CD7.3060009@mrabarnett.plus.com> Date: Tue, 12 Nov 2013 14:14:44 -0500 Subject: Re: datetime question From: Joel Goldstick To: "python-list@python.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 30 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384283687 news.xs4all.nl 16012 [2001:888:2000:d::a6]:58670 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59229 On Tue, Nov 12, 2013 at 2:09 PM, MRAB wrote: > On 12/11/2013 16:12, Tim Chase wrote: >> >> On 2013-11-12 17:57, Ferrous Cranus wrote: >>> >>> > Best practices say to move the value from local time to UTC as >>> > soon as possible, then store/use the UTC time internally for all >>> > operations. Only when it's about to be presented to the user >>> > should you convert it back to local time if you need to. >>> >>> or perhaps by confiruing the timezone of the server to use Greece's >>> TimeZone by issuing a linux command? >> >> >> Regardless of the server's configured TZ, best practice still says to >> normalize everything to UTC (ESPECIALLY if Greece uses the >> abomination of DST that we suffer here in the US) as soon as >> possible and keep it that way for as long as possible. >> > FTR, the countries in the EU all change at the same (UTC) time. > -- > https://mail.python.org/mailman/listinfo/python-list In the US, the state of Indiana is really weird. Three separate time zone areas, that don't all flip in the same way. See this for TZ hell: http://en.wikipedia.org/wiki/Indiana_time_zones -- Joel Goldstick http://joelgoldstick.com