We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 39498
    • 169 Posts
    Your right
            if (empty($myEventEnde)) {
                $data['unpub_date'] = date("d.m.Y H:i",strtotime("+6 hours", strtotime($myEventStart)));
            } else {
                $data['unpub_date'] = date("d.m.Y H:i",strtotime("+6 hours", strtotime($myEventEnde)));
            };

    does the job.
    Its a bit confusing, that here is needed the String but with the ressource object not.