Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72880
| From | Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Da dove prende python il default timezone? |
| Date | 2014-06-06 20:29 +0200 |
| Organization | C.U. srl News Server |
| Message-ID | <lmt19i$ed0$1@virtdiesel.mng.cu.mi.it> (permalink) |
| References | <3aff2999-5e30-44eb-84c0-5bb5cf92374a@googlegroups.com> |
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
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll thread
Da dove prende python il default timezone? Strae <daniele.pignedoli@gmail.com> - 2014-06-06 08:37 -0700 Re: Da dove prende python il default timezone? Strae <daniele.pignedoli@gmail.com> - 2014-06-06 08:37 -0700 Re: Da dove prende python il default timezone? Andrea D'Amore <anddamNOALPASTICCIODICARNE+gruppi@brapi.net> - 2014-06-06 20:29 +0200
csiph-web