Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72853
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2014-06-06 08:37 -0700 |
| Message-ID | <3aff2999-5e30-44eb-84c0-5bb5cf92374a@googlegroups.com> (permalink) |
| Subject | Da dove prende python il default timezone? |
| From | Strae <daniele.pignedoli@gmail.com> |
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:
import os, time
from time import strftime
strftime("%H") # Le 18 sono le 23!
Ora, posso settare il timezone nello script, ma per impostarlo a livello "globale" come si fà?
Scusate se è una domanda scema ma con python sono moooolto alle prime armi ;)
Back to comp.lang.python | Previous | Next — Next 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