Closed johannesnagl closed 10 years ago
Set it in your php.ini
don't you see an advantage for this directly within the code? i don't always have the possibility to change this in the php.ini due to access limitations.
Putting it in the php.ini is the "right way" to solve that warning.
You can also set php.ini values in .htaccess if your server is running under Apache, and if it allows it.
Setting the timezone directly in a file is a bit hacky, since everyone has a different timezone, and you can't hardcode that.
If it's really not possible, you can maybe try setting your timezone in Lib/CakeResqueBootstrap.php
Any update ?
Sorry, this does not help. I tested it within the Lib/CakeResque.php as well as in my custom Config/boostrap.php
Both ways do not work as expected - i'm receiving the same error as mentioned previously.
Can you update the composer dependencies, and try again with Lib/CakeResqueBootstrap.php
?
New php-resque-ex version should be 1.2.7
Looks like it's now working out of the box - without a need to write something in Lib/CakeResqueBootstrap.php.
Thx mate!
Good !
Hi,
since there's no possibility to open an issue directly at the monolog-repo, I'd like to open up the issue here, because i do receive the error when firing up a resque worker.
by calling
I receive a "fail" and the worker can not be started. having a look in the resque-worker-error.log I found the following error:
Of course, I sat the date_default_timezone_set directly within Cake's core.php file, but this is apparently not reflected by monolog.
by adding the "date_default_timezone_set('Europe/Vienna');" directly to the mentioned file above, everything works as expected. but I think, this is only a quick & dirty hack - not a proper solution to the underlying problem. what do you think?