[Jenkins only] Move timezone logic out of server.php

for #12881