Da dove prende python il default timezone?

Andrea D'Amore anddamNOALPASTICCIODICARNE+gruppi at brapi.net
Fri Jun 6 14:29:06 EDT 2014


On 2014-06-06 15:37:24 +0000, Strae said:

> Ho acquistato un server di test in canada; Installato debian 7, settato 
> il timezone di Roma tramite dpkg-reconfigure tzdata e sembra tutto ok;
> Però sembra che python di default prenda sempre il timezone canadese

I'm on a very similar setup (Wheezy, server in USA, EU timezone) and my 
strftime works as expected:

~> cat /etc/timezone
Europe/Rome
~> date "+%H"
20
~> python -c 'import time; print time.strftime("%H")'
20


Try reconfiguring tzdata package again.

-- 
Andrea




More information about the Python-list mailing list