Skip to content
This repository has been archived by the owner on Aug 25, 2019. It is now read-only.

Timezone warning in core #197

Closed
joostdecock opened this issue Dec 14, 2017 · 0 comments
Closed

Timezone warning in core #197

joostdecock opened this issue Dec 14, 2017 · 0 comments

Comments

@joostdecock
Copy link
Owner

PHP throws this:

date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function.
``

It's because of this line in `patterns/Core/Pattern/Pattern.php`

$this->replace('DATE', date('l j F Y') != null ? date('l j F Y') : NULL);


This is the ghost of our MMP history where we used to include the date the pattern was generated in the output. Now, we have the date the pattern was generated in the frontend, so there's no need for this.

As we no longer use the date in the output. So this line can simply be removed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant