#1486698 closed Bugs (invalid)
problem with mktime
| Reported by: | dziobak | Owned by: | |
|---|---|---|---|
| Priority: | 10 - Lowest | Milestone: | later |
| Component: | PHP backend | Version: | git-master |
| Severity: | normal | Keywords: | |
| Cc: | vince@… |
Description
in the last few days, every time i do something on RC or it check for new message, there is written in error log many errors like this:
[29-Apr-2010 19:06:54] PHP Warning: mktime() [<a href='function.mktime'>function.mktime</a>]: 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. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Berlin' for 'CEST/2.0/DST' instead in /usr/local/www/roundcube/program/include/main.inc on line 133 (... and more lines)
It does no meter if i set in RC correct timezone or to auto.
Please remove this problem. in one day my error log have size about 1MB...
Change History (6)
comment:1 Changed 3 years ago by vince
- Cc vince@… added
comment:2 Changed 3 years ago by dziobak
- Milestone changed from 0.4-stable to later
- Priority changed from 3 to 10 - Lowest
Sorry, my fault, you can close it.
thanks Vince for good answer :-).
comment:3 Changed 3 years ago by dziobak
Maybe there is a possibility to inform in error log that this should be done?
comment:4 Changed 3 years ago by alec
- Resolution set to invalid
- Status changed from new to closed
You've got a warning, so what else you want? ;)
comment:5 Changed 3 years ago by dziobak
Something like: "set timezone in php.ini" ;-)
comment:6 Changed 3 years ago by alec
There's a check for this in Installer.
Note: See
TracTickets for help on using
tickets.

Have you recently upgraded to PHP 5.3? You need to set your timezone (date.timezone) in your php.ini file, not Roundcube's configuration. Restart Apache and yu should be good to go.