removed gmtime from code as timezone now set in php.ini