Showing posts with label timezone. Show all posts
Showing posts with label timezone. Show all posts

Monday, April 2, 2012

Date Timezone Problem in Unix(BSD) Server

Case: System cannot login OR Timezone Error in application.

Solution:

  1. # cd usr/local/etc/
  2. ee php.ini
  3. Search keyword: date.timezone
  4. Read reference setting:  http://www.php.net/manual/en/timezones.asia.php
  5. Change / add timezone
     date.timezone = "Asia/Kuala_Lumpur"
  6. Checking date in server
    #date

  7. if not same you have to setting up using this command
    #ntpdate asia.pool.ntp.org
  8. Restart APACHE service
    #/usr/local/etc/rc.d/apache22 restart