I am trying to add 28 days to a date and keep getting the following error:
Message: A non well formed numeric value encountered
My code is:
$expirationDate = 1396885780;
$entryDate = 1396885780;
if ($expirationDate) {
$expiration = time(strtotime($expirationDate, '+28 day'));
} else {
$expiration = time(strtotime($entryDate, '+28 day'));
}
So basically I am passing a %U format date (which I think is universal) and wanting to add 28 days to it.
Can anyone see the issue here?