Added setting for timezone. And valid end-of-php-tag...

Without the timezone setting, sometimes UTC is selected.