I found the solution – I used PHP’s date()
function to format it into a ISO 8601 compliant format, so there is no confusion around timezones, etc.
$args = array(
'date_query' => array(
'before' => date( 'c' , 1486045020 )
)
);
I found the solution – I used PHP’s date()
function to format it into a ISO 8601 compliant format, so there is no confusion around timezones, etc.
$args = array(
'date_query' => array(
'before' => date( 'c' , 1486045020 )
)
);