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

*7567 Added time zone config setting* #52

Merged
merged 2 commits into from
Feb 11, 2014
Merged

*7567 Added time zone config setting* #52

merged 2 commits into from
Feb 11, 2014

Conversation

MichaelThessel
Copy link
Contributor

// Starting from PHP 5.3.0 PHP will throw an E_WARNING if the default
// time zone is not set and date/time functions are used
// http://pl.php.net/manual/en/function.date-default-timezone-set.php
if ($timeZone = AppLocale::getTimeZone()) {
Copy link
Contributor

Choose a reason for hiding this comment

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

AppLocale::getTimeZone() should always return a time zone right? So I am not sure this check is needed, unless you want to capture some error (someone changed the getTimeZone() method, for example, and now it can return null), but then you have to assert(false) if the condition you are testing here is false so developers will know the error and where it is. Makes sense?

@MichaelThessel
Copy link
Contributor Author

Added requested changes.

asmecher added a commit that referenced this pull request Feb 11, 2014
*7567 Added time zone config setting*
@asmecher asmecher merged commit 6c53d4a into pkp:master Feb 11, 2014
@asmecher
Copy link
Member

Merged, thanks!

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.

3 participants