Current Time Timestamp

Don't use current_time() to get a timestamp as it doesn't produce a Unix (UTC) timestamp, but a "WordPress timestamp", i.e. a Unix timestamp with current timezone offset.

Valid: using time() to get a Unix (UTC) timestamp.

$timestamp = <em>time()</em>;

Invalid: using current_time() to get a Unix (UTC) timestamp.

$timestamp = <em>current_time( 'timestamp', true )</em>;

Valid: using current_time() with a non-timestamp format.

$timestamp = current_time( <em>'Y-m-d'</em> );

Invalid: using current_time() to get a timezone corrected timestamp.

$timestamp = <em>current_time( 'U', false )</em>;