Title: where does WordPress get the time from?
Last modified: August 19, 2016

---

# where does WordPress get the time from?

 *  [jberghem](https://wordpress.org/support/users/jberghem/)
 * (@jberghem)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/where-does-wordpress-get-the-time-from/)
 * The time on the site settings page is off by 12 minutes on my server. I contacted
   my webhost who checked the MySQL server time and they claim it is on time. They
   asked me how they can reproduce the time generated by WordPress. Does anyone 
   know where WordPress get the time from and where/how this can be set?

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

 *  [mikey1](https://wordpress.org/support/users/mikey1/)
 * (@mikey1)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/where-does-wordpress-get-the-time-from/#post-815900)
 * Hi, as far as I am aware its set from your server depending on its location, 
   this plugin may be of some help, not sure where you are.
    [http://wordpress.org/extend/plugins/automatic-timezone/](http://wordpress.org/extend/plugins/automatic-timezone/)
   hope it helps. mike
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 11 months ago](https://wordpress.org/support/topic/where-does-wordpress-get-the-time-from/#post-815901)
 * WordPress gets its time from the webserver that it is running on, which may not
   be the same as the MySQL server.
 * In PHP, have them run this to see what the server time is:
    `<?php echo gmdate('
   Y-m-d G:i:s'); ?>`
 * That should output the current time on the server in GMT, which is what the time
   on their server should be set to.
 * WordPress uses that time plus whatever offset you give it to determine your “
   local” time.
 *  Thread Starter [jberghem](https://wordpress.org/support/users/jberghem/)
 * (@jberghem)
 * [17 years, 10 months ago](https://wordpress.org/support/topic/where-does-wordpress-get-the-time-from/#post-816008)
 * [@mikey1](https://wordpress.org/support/users/mikey1/) – thanks for the response
   but my timezone is set properly, this is not an timezone issue. Timezones are
   always set with hours not minutes. In fact the half hour increments on the settings
   page are actually not necessary since there’s always an hour difference between
   the zones, never a half hour. Therefore if the time is off by 12 and half minutes
   it means that either the server time or your PC time is not set to Internet time.
 * @ Otto42 – Thank you I’ll run it by my webhost. Hope this info helps them.
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [17 years, 10 months ago](https://wordpress.org/support/topic/where-does-wordpress-get-the-time-from/#post-816014)
 * > _In fact the half hour increments on the settings page are actually not necessary
   > since there’s always an hour difference between the zones, never a half hour._
 * Not true. Many timezones in the world have half hour differences.
 * But your point is valid nevertheless, a 12 minute difference means that your 
   server time is wrong.
 *  Thread Starter [jberghem](https://wordpress.org/support/users/jberghem/)
 * (@jberghem)
 * [17 years, 8 months ago](https://wordpress.org/support/topic/where-does-wordpress-get-the-time-from/#post-816173)
 * @ Otto42 – I stand corrected, I didn’t know that. There are even 15min. difference
   timezones.
 * Anyway I got the time corrected by the webhost. Thanks for your help
 * PS. I started this post but somehow it isn’t giving me the option to change the
   status to “resolved”
    in my profile the Threads Started column stays empty when
   I post. It’s all in the Recent Replies column

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

The topic ‘where does WordPress get the time from?’ is closed to new replies.

## Tags

 * [MySQL](https://wordpress.org/support/topic-tag/mysql/)
 * [time](https://wordpress.org/support/topic-tag/time/)

 * In: [Everything else WordPress](https://wordpress.org/support/forum/miscellaneous/)
 * 5 replies
 * 3 participants
 * Last reply from: [jberghem](https://wordpress.org/support/users/jberghem/)
 * Last activity: [17 years, 8 months ago](https://wordpress.org/support/topic/where-does-wordpress-get-the-time-from/#post-816173)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
