Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.051 X-Spam-Evidence: '*H*': 0.90; '*S*': 0.00; '(especially': 0.07; 'dst': 0.09; 'subject:question': 0.10; '-tkc': 0.16; 'from:addr:python.list': 0.16; 'from:addr:tim.thechases.com': 0.16; 'from:name:tim chase': 0.16; 'internally': 0.16; 'utc': 0.16; 'wrote:': 0.18; 'possible,': 0.19; 'regardless': 0.24; 'header:In-Reply-To:1': 0.27; 'issuing': 0.31; 'operations.': 0.31; 'us)': 0.31; 'linux': 0.33; 'says': 0.33; 'possible.': 0.35; 'convert': 0.35; 'charset:us-ascii': 0.36; 'possible': 0.36; 'should': 0.36; 'server': 0.38; 'configured': 0.38; 'to:addr :python-list': 0.38; 'to:addr:python.org': 0.39; 'back': 0.62; 'soon': 0.63; 'here': 0.66; 'presented': 0.69; 'greece': 0.84; 'received:50.22': 0.84; 'suffer': 0.93 Date: Tue, 12 Nov 2013 10:12:32 -0600 From: Tim Chase To: python-list@python.org Subject: Re: datetime question In-Reply-To: References: X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.10; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - boston.accountservergroup.com X-AntiAbuse: Original Domain - python.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tim.thechases.com X-Get-Message-Sender-Via: boston.accountservergroup.com: authenticated_id: tim@thechases.com 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: 17 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1384272663 news.xs4all.nl 15935 [2001:888:2000:d::a6]:55103 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:59215 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. -tkc