Re: Time Zone Problem when following on tutorial

2015-08-20 Thread Palmillo
Many thanks too all!! You've been really helpful On Monday, June 23, 2014 at 7:34:03 PM UTC-3, Jerry Wu wrote: > > Dear every one, > > I am following the tutorial > and meet with > some problem with Time Zone part. Since I am in Shanghai,

Re: Time Zone Problem when following on tutorial

2015-08-20 Thread 'Tom Evans' via Django users
On Fri, Jul 4, 2014 at 12:01 AM, Mike Dewhirst wrote: > On 3/07/2014 11:57 PM, Jerry Wu wrote: >> >> Mike, >> >> Sorry for the late reply. >> >> Your explanation about "time is constant" makes sense to me. But I still >> didn't know what to do with time setting following the tutorial. > > > One da

Re: Time Zone Problem when following on tutorial

2015-08-20 Thread Luis Zárate
install pytz $ pip install pytz In settings USE_TZ = True https://docs.djangoproject.com/en/1.8/topics/i18n/timezones/ And the time_zone is TIME_ZONE = "America/Argentina/Buenos_Aires" More details in https://en.wikipedia

Re: Time Zone Problem when following on tutorial

2015-08-20 Thread Palmillo
Hi, sorry to bring this up again, but I am currently facing same issue here: following the tutorial (first time with both Django and Python). I live in Buenos Aires, Argentina (UTC-3). Therefore, I would like to set the time zone for this region. I apologize, but although I serfed the web trying

Re: Time Zone Problem when following on tutorial

2014-07-03 Thread Mike Dewhirst
On 3/07/2014 11:57 PM, Jerry Wu wrote: Mike, Sorry for the late reply. Your explanation about "time is constant" makes sense to me. But I still didn't know what to do with time setting following the tutorial. One day I'll do some experiments and *really* understand how it works. My variables

Re: Time Zone Problem when following on tutorial

2014-07-03 Thread Jerry Wu
Mike, Sorry for the late reply. Your explanation about "time is constant" makes sense to me. But I still didn't know what to do with time setting following the tutorial. Anyway, I chose to use Asia/Shanghai instead of fashion code. So far so good. Thank you very much. On Thursday, June 26,

Re: Time Zone Problem when following on tutorial

2014-06-25 Thread Mike Dewhirst
Jerry I just figured it out and it is simple. Time is constant and all you need to do is decide how* you want to display it. The TIME_ZONE setting tells the server. An event happens at the same time everywhere in the universe (there may be Einsteinian exceptions to this) and you can store tha

Re: Time Zone Problem when following on tutorial

2014-06-25 Thread miked
It respects the settings.py time zone not the system locale. This means your question needs to be addressed by someone smarter than me. Sorry Mike On 2014-06-25 16:42, mi...@dewhirst.com.au wrote: On 25/06/2014 7:44 AM, Jerry Wu wrote:> Thanks, Mike. I still have a question. In your code,

Re: Time Zone Problem when following on tutorial

2014-06-24 Thread miked
On 25/06/2014 7:44 AM, Jerry Wu wrote:> Thanks, Mike. I still have a question. In your code, which part should I change in order to set the time zone to Asia/Shanghai? My settings uses Australia/Melbourne and Postgres stores time correctly as UTC+10 (or UTC+11 in daylight saving time). But

Re: Time Zone Problem when following on tutorial

2014-06-24 Thread Jerry Wu
Thanks, Mike. I still have a question. In your code, which part should I change in order to set the time zone to Asia/Shanghai? On Tuesday, June 24, 2014 7:26:52 AM UTC+8, Mike Dewhirst wrote: > > On 24/06/2014 8:34 AM, Jerry Wu wrote: > > Dear every one, > > > > I am following the tutorial

Re: Time Zone Problem when following on tutorial

2014-06-23 Thread Mike Dewhirst
On 24/06/2014 8:34 AM, Jerry Wu wrote: Dear every one, I am following the tutorial and meet with some problem with Time Zone part. Since I am in Shanghai, China (UTC+8) , I think it is necessary to reset the time part. Below is what I tr

Time Zone Problem when following on tutorial

2014-06-23 Thread Jerry Wu
Dear every one, I am following the tutorial and meet with some problem with Time Zone part. Since I am in Shanghai, China (UTC+8) , I think it is necessary to reset the time part. Below is what I tried but failed with valuerror incorrec