# Question about the timezone

**URL:** <https://www.ruby-forum.com/t/question-about-the-timezone/210663>\
**Category:** NGINX\
**Created:** [August 13, 2011, 4:28pm UTC](https://www.ruby-forum.com/t/question-about-the-timezone/210663 "2011-08-13T16:28:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dubstep](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/cdc98d/32.png) [@dubstep](https://www.ruby-forum.com/u/dubstep)\
**Post date:** [August 13, 2011, 4:28pm UTC](https://www.ruby-forum.com/t/question-about-the-timezone/210663/1 "2011-08-13T16:28:57Z")

</div>

hi,everyone:  
i have a question about the System TimeZone,i have a Server with  
CentOS 5,its previous timezone is UTC timezone,and nginx use it as  
default timezone.  
now today i changed the timezone to CST(+8) of Asia/Shanghai by modify  
the /etc/localtime file and the tzselect command.beside that,i also  
export the TZ var as “Asia/Shanghai”.

but,after i restarted the nginx,i found that nginx still use the OLD UTC  
timezone.

even,i define the timezone at nginx.conf with “env TZ=Asia/Shanghai”,but  
no work.

Why?Can someone help me?Thanks~

–  
Best regards,  
Sharl.Jimh.Tsin (From China _Obviously Taiwan INCLUDED_)

Using Gmail? Please read this important notice:  
[Gmail — Free Software Foundation — Working together for free software](http://www.fsf.org/campaigns/jstrap/gmail?10073).
