Open GoogleCodeExporter opened 9 years ago
http://docs.python.org/library/datetime.html discusses timezones and python
datetime
Original comment by Les.Faby.78@gmail.com
on 13 Jun 2009 at 3:15
import time
# secs per hr=3600
print time.timezone/3600
8
print time.daylight
1
Original comment by Les.Faby.78@gmail.com
on 13 Jun 2009 at 3:27
during daylight savings time, the difference between GMT and Pacific DST is one
hour
less (7 vs 8)
Original comment by Les.Faby.78@gmail.com
on 13 Jun 2009 at 3:29
It looks to me like I should have gotten the time using datetime.now() rather
than
datetime.fromtimestamp(time()). This is an easy change.
Does this look right to you guys?
Original comment by bd.gai...@gmail.com
on 13 Jun 2009 at 3:41
Les, is this really an issue? I ran a test case using the date conversion
routines
and both a version using now() and the original version are printing local time
on my
machine. The other thing that we should realize is that since all date setting
and
formatting is being done server side, we probably would need to work harder to
get
the information needed to establish a time difference between the client and
server
to format dates for the client's local time. I know client browsers send
through a
bunch of information to the server, so we may be able to handle this.
Original comment by bd.gai...@gmail.com
on 14 Jun 2009 at 6:13
Original issue reported on code.google.com by
Les.Faby.78@gmail.com
on 13 Jun 2009 at 3:10