• Resolved aberbenni

    (@aberbenni)


    I’m selecting 01-12-2019 – 10-01-2020 period:
    https://www.website.it/wp-admin/admin.php?page=adrotate-statistics&id=84&view=advert&graph_start=01-12-2019&graph_end=10-01-2020&graph_submit=Go

    But, after hitting Go button, form shows 01-01-2019 – 10-01-2020 period and chart shows 06-03-2019 – 10-01-2020 period. Dates are unreadable.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter aberbenni

    (@aberbenni)

    You need to change code in adrotate-pro.php from:

    $start_month = date("m", strtotime($start_month."-".$start_year)); // Convert month to number
    $end_month = date("m", strtotime($end_month."-".$end_year)); // Convert month to number

    to

    $start_month = date("m", strtotime("01-".$start_month."-".$start_year)); // Convert month to number
    $end_month = date("m", strtotime("01-".$end_month."-".$end_year)); // Convert month to number

    otherwise strtotime() returns FALSE and both date("m", FALSE) and date("m", TRUE) returns 01 on PHP 7

    Plugin Author Arnan de Gans

    (@adegans)

    Update to version 5.7 first.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Chart Dates Don’t Match Requested’ is closed to new replies.