Just a quick note about how WordPress handles dates and times.
As of WordPress version 3.0, the
time() functions do not factor in timezones. This is to ensure maximum portability across server setups. This means that
time() return UTC time in WP 3 and beyond. To get the Unix timestamp with a timezone offset, write this:
- Date and Time with PHP and WordPress
- Display user-friendly dates and times
- Update WordPress Post With Current Time
Like our new Facebook Page to show support!