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: