Sunday, October 20, 2013

Time zone error in drupal

While installing drupal theme, I encountered an error saying We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone " . It also suggested me to change the demo_profile.profile file in the Drupal installation folder.

Error Cause :  No timezone available in server system( it can be your personal PC on which Drupal site is hosted ).

Solution :
  1. Open /etc/php5/apache2/php.ini in a text editor like gedit.
  2. Search for the line " date.timezone ". # Mostly it will be in commented state
  3. Change it to " date.timezone = Your Zone " For ex: date.timezone = Asia/Kolkata 
  4. If you are unsure about what to put in place of time zone, goto this link. Search for the region and copy paste the relevant. 
  5. If you are on a hosting server, please ask your administrator to do this for you.

NOTE : This solution is for Drupal installation on a Linux platform.

If you enjoyed this post, make sure you subscribe to my RSS feed! Comments are encouraged

No comments:
Write comments