I am adding number stored in custom user meta data to current date. Here is my code
$addeddays = get_user_meta($this->order->user_id, 'xxx', true); $timeBase = date('j.n.Y'); echo date('j.n.Y', strtotime($timeBase, "+ $addeddays days"));
But output is 1.1.1970
What is wrong in code or how to do it with other method? I read question about this but in answers was also my method so I do not know why it is not working.