Different query result on local and server

Can you try using another date format? Example:

foreach ($blogs AS $blog) {    
    switch_to_blog($blog["blog_id"]);
    $yesterday_today = array(
        'order' => 'ASC',
        'orderby' => 'date',
        'date_query' => array(
            array(
                'after'    => array(
                    'year'  => date('Y',strtotime("-1 days")),
                    'month' => date('n',strtotime("-1 days")),
                    'day'   => date('j',strtotime("-1 days")),
                ),
                'before'    => array(
                    'year'  => date('Y'),
                    'month' => date('n'),
                    'day'   => date('j'),
                ),
                'inclusive' => true,
            ),
        ),
        'posts_per_page' => -1,
    );
    //....