Ticket/12932 Allow overwriting the \phpbb\datetime class

https://tracker.phpbb.com/browse/PHPBB3-12932
phpbb\datetime is extending DateTime.
With this change a new DateTime class can overwrite it, but does not have to