Put a backslash in from of the class name to indicate it is in the global namespace:
$time = new \DateTime(‘now’, new \DateTimeZone(‘UTC’));
Put a backslash in from of the class name to indicate it is in the global namespace:
$time = new \DateTime(‘now’, new \DateTimeZone(‘UTC’));