Note about date and time
Just a quick note about how WordPress handles dates and times.
Update! WordPress 5.3 changes date/time functionality. Check out this post for more details and all the latest techniques.
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: