Summary: | www-apps/mantisbt-1.2.4 uses date_default_timezone_get() function | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Johannes Geiss <johannes.geiss> |
Component: | Current packages | Assignee: | Peter Volkov (RETIRED) <pva> |
Status: | RESOLVED FIXED | ||
Severity: | trivial | CC: | david, web-apps |
Priority: | Low | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Johannes Geiss
2011-09-02 11:15:06 UTC
Thank you for report. Please try with 1.2.7-r1 and if problem persists report upstream: http://www.mantisbt.org/bugs/plugin.php?page=ManTweet/index.php (In reply to comment #1) > Thank you for report. Please try with 1.2.7-r1 I have tried 1.2.7-r1 but the warning persists. > and if problem persists report > upstream: > http://www.mantisbt.org/bugs/plugin.php?page=ManTweet/index.php Sorry, I don't use Twitter and don't have an account. Could you report this, please? (In reply to comment #2) > > http://www.mantisbt.org/bugs/plugin.php?page=ManTweet/index.php > > Sorry, I don't use Twitter and don't have an account. Could you report this, > please? This is not a Twitter but just another mantis installation ;) I'm asking _you_ to report since upstream most probably will ask you questions about your configuration, I'd like to avoid additional delays in communication and job for me, if possible. Peter, thanks for adding me to the CC list. Johannes, the quick fix is to add the following to config_inc.php: $g_default_timezone = 'UTC'; Where 'UTC' is a value that is a valid PHP timezone from http://us.php.net/manual/en/timezones.php MantisBT 1.2.x was originally designed to work with PHP 5.1 (it is still compatible with this older version of PHP - although *NOT* recommended for security/upstream supportability reasons). In PHP <5.3 the use of date_default_timezone_get() was considered OK (no warnings). PHP 5.3 changes this situation by requiring the timezone to be set in the date.timezone INI setting (http://www.php.net/manual/en/datetime.configuration.php#ini.date.timezone) or be specified manually by each PHP script. It's probably a good idea to add a date.timezone configuration value to your PHP 5.3 configuration files (CGI, CLI, etc). You can alternative specify it manually in MantisBT using the config_inc.php approach I mentioned above. I hope this information is of assistance. Please let me know if you have further questions/problems. David (In reply to comment #3) > This is not a Twitter but just another mantis installation ;) I'm asking _you_ > to report since upstream most probably will ask you questions about your > configuration, I'd like to avoid additional delays in communication and job for > me, if possible. Sorry I misunderstood this. I did it now: http://www.mantisbt.org/bugs/view.php?id=13293 (In reply to comment #4) > $g_default_timezone = 'UTC'; Thank you. This fixed the issue. Thank you, David for detailed explanation. Closing bug then. Personally I prefer to specify timezone in php.ini. |