<?php
$date = new DateTime();
$date->setTimezone(new DateTimeZone('America/New_York'));
$date->modify('midnight first day of next month');
var_dump($date);
Warning: DateTime::modify(): Failed to parse time string (midnight first day of next month) at position 19 (o): The timezone could not be found in the database in /in/uPaqP on line 7
object(DateTime)#1 (0) {
}
Output for 5.2.0 - 5.2.12
object(DateTime)#1 (0) {
}
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/uPaqP on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/uPaqP on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/uPaqP on line 3