Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

Is this a bug of fDate?

posted by jmtucu 6 years ago

Today is 2013-01-30, so:

$today = fDate('today');
$next_month = $today->adjust('+1 month'); 

Apparently, +1 month add 30 days to current day so next_month is 2013-03-02. What about february? I know there's only 28 days but it's pretty weird add a month and goes to march instead...

In this case, how can I get the next month?