Title: Fatal error: Call to undefined function: date_default_timezone_set()
Last modified: August 19, 2016

---

# Fatal error: Call to undefined function: date_default_timezone_set()

 *  [melanierich](https://wordpress.org/support/users/melanierich/)
 * (@melanierich)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-date_default_timezone_set/)
 * Can anyone help?
 * I have just tried to upload a sandbox theme blog to Plusnet who run php version
   4.3.10 and I got the following error message
 * _**Fatal error: Call to undefined function: date\_default\_timezone\_set() in/
   share/storage/03/pe/peoplespace/wp-config.php on line 17**_
 * – I know that one possible answer would be to change the php.ini file but I am
   unable – is there another way to deal with this problem??
 * I have developed this blog on my own xampp server php version 5.3 and whilst 
   I was doing this I uploaded atahualpa to my website which worked perfectly.
 * hope someone can come up with the answer.
 * Thanks
 * Melanie Rich

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-date_default_timezone_set/#post-1259651)
 * `date_default_timezone_set()`
    that feature wasn’t introduced until PHP 5.1.0
   so your host’s php version is way out of date for it to function I think php5.2.9
   is the earliest stable release for it
 * you might try a [putenv](http://us3.php.net/putenv) in the theme’s header.php–
   no guarantee it will work and back up 1st
 *     ```
       if(function_exists('date_default_timezone_set')
       {
          date_default_timezone_set('UTC');
       }
       else
       {
          putenv("TZ=UTC");
       }
       ```
   
 *  Thread Starter [melanierich](https://wordpress.org/support/users/melanierich/)
 * (@melanierich)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-date_default_timezone_set/#post-1259697)
 * Thanks very much for this I will try it.
 * Plusnet said they were going to upgrade soon !!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Fatal error: Call to undefined function: date_default_timezone_set()’
is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 2 replies
 * 2 participants
 * Last reply from: [melanierich](https://wordpress.org/support/users/melanierich/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/fatal-error-call-to-undefined-function-date_default_timezone_set/#post-1259697)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
