[ticket/11103] Case time in queries as an int

PHPBB3-11103