Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow user to set the timezone of the server and php #301

Merged
merged 1 commit into from
Aug 15, 2015

Conversation

Kimisyl
Copy link
Contributor

@Kimisyl Kimisyl commented Aug 15, 2015

Add a way to set server's timezone from a user value. The user value will also be used to set date.timezone for php-fpm.default

The timezone is compared with zone files before being set to ensure its validity.


- name: Validate timezone variable
stat: path=/usr/share/zoneinfo/{{ default_timezone }}
register: valid_timezone
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about naming this timezone_path (since it might not be valid)?

@swalkinshaw
Copy link
Member

This is great 👍. Just a few minor suggestions. I really like the helpful error message as well.

@Kimisyl
Copy link
Contributor Author

Kimisyl commented Aug 15, 2015

@swalkinshaw Fixed and rebased.

@swalkinshaw
Copy link
Member

Tested and works great. Thanks!

swalkinshaw added a commit that referenced this pull request Aug 15, 2015
Allow user to set the timezone of the server and php
@swalkinshaw swalkinshaw merged commit f18d68f into roots:master Aug 15, 2015
@Kimisyl Kimisyl deleted the feature/set-timezone branch August 15, 2015 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants