Jo Smo Jo Smo - 7 months ago 51
PHP Question

Error message: "A non well formed numeric value encountered"

The code where i get this error:

echo gmdate('Y-m-d H:i:s', strtotime('+7 days','2035-01-01 00:00:00'));


The second parameter of strtotime expects a timestamp, not a string. See the manual on strtotime.

Edit: You can use strtotime again on your second parameter to get what you want:

echo gmdate('Y-m-d H:i:s',strtotime('+7 days',strtotime('2035-01-01 00:00:00')));