Note about date and time
Just a quick note about how WordPress handles dates and times.
As of WordPress version 3.0, the date()
and time()
functions do not factor in timezones. This is to ensure maximum portability across server setups. This means that date()
and time()
return UTC time in WP 3 and beyond. To get the Unix timestamp with a timezone offset, write this:
current_time('timestamp')