Move timezone logic out of server.php