Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Why do we have 2 date fields in the wp_posts? What's the purpose of the post_date_gmt? When does storing the greenwich time get handy?

share|improve this question

1 Answer 1

up vote 6 down vote accepted

Some countries use a Daylight Saving Time (DST):

Typically clocks are adjusted forward one hour near the start of spring and are adjusted backward in autumn.

Sometimes there is no 2 am. Sometimes you get 2 am two times. To avoid cron jobs running twice or not at all WP needs the GMT (or more precise: UTC). UNIX time stamps cannot be used because they start in 1970 … and there is still the Year 2038 problem.

If you want to write an imaginary diary of Gaius Julius Caesar or James T. Kirk … you will run into problems with the current system too, but they may be solvable at least. :)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.