Monday, April 30, 2012

Django timezone doesn't show the right time?

Hi I'm a total programming newbie!

### INTRO ###
I have been following this tutorial and the timezone outputs confuses
me.
https://docs.djangoproject.com/en/1.4/intro/tutorial01/#playing-with-the-api

And I'm still confused after reading these explanations, I basically
need some really dumbed down answers to understand this timezone
business:

<b>TIME_ZONE setting: How does it work?</b>
http://groups.google.com/group/django-users/browse_thread/thread/bebbc1310f24e945/100d0fc3e8620684?lnk=gst&q=timezone+problems#



### QUESTION ###
* Europe/Brussels has UTC+2 during summer time.

When I run this as I follow the Django tutorial, then the time (20:34)
is behind by 2 hours to my local time and UTC displays +00:00.
Shouldn't it display 22:34 +02:00 instead for a server located at
Europe/Brussels?

>>> Poll.objects.all()
<Poll: How do you do? 2012-04-26 20:34:33.337247+00:00>]

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment