Just fell foul of this quintessentially PHP nonsense: the DateTime->add method not only returns a DateTime object with the resulting time, it modifies the original DateTime.
php.net/manual/en/dateā¦
Just fell foul of this quintessentially PHP nonsense: the DateTime->add method not only returns a DateTime object with the resulting time, it modifies the original DateTime.
php.net/manual/en/dateā¦