• the only one reason I dl this plugin is automatic display for a future date based on today, but too bad there’s a format issue for date_add short code, please fix this in the next update, thank you, good job.

    • This topic was modified 6 years, 1 month ago by tojekotewo.
Viewing 1 replies (of 1 total)
  • Here is how to easily fix it. Go to the Plugins -> Plugin Editor then select Date Calculator. You are now on editable date-calculator.php

    FOR date_add
    There you need to find line 203 and replace with this code:
    $datecalc = date($format, mktime(0, 0, 0, date(“m”)+$month, date(“d”)+$day, date(“Y”)+$year));” WITHOUT QUOTE

    FOR date_sub
    Find line 244 and replace with this code:
    “$datecalc = date($format, mktime(0, 0, 0, date(“m”)-$month, date(“d”)-$day, date(“Y”)-$year));” WITHOUT QUOTE

    Now you can use custom date format.

Viewing 1 replies (of 1 total)
  • The topic ‘Bummer’ is closed to new replies.