[ticket/13118] Correctly use the provided datetime class

https://tracker.phpbb.com/browse/PHPBB3-13118