Hello, please refer to php documentation http://php.net/manual/en/function.date-default-timezone-set.php Note: Since PHP 5.1.0 (when the date/time functions were rewritten), every call to a date/time function will generate a E_NOTICE if the timezone isn't valid, and/or a E_WARNING message if using the system settings or the TZ environment variable. On 28.12.2012, at 1:38, Robert Moskowitz <rgm at htt-consult.com> wrote: > > On 12/27/2012 07:17 PM, SilverTip257 wrote: >> On Thu, Dec 27, 2012 at 6:10 PM, Robert Moskowitz <rgm at htt-consult.com>wrote: >> >>> I have again reviewed the setup instructions for Roundcube, and I am not >>> finding anyplace where I am told what to change in php.ini. >>> >>> Frustrating. My search fu has been hit and miss, with more misses of late. >>> >>> >> Please read. >> Eero gave you the *answer*. And others have been spot on saying it's a PHP >> configuration item. >> >> Roundcube isn't going to tell you to set the timezone in php.ini ... that's >> an admin's job to have already done. > > I was not clear. It is quite apparent that Roundcube requires timezone > set in php.ini. This is an application requirement. An admin should not > need to guess this, nor discover it due to error messages. So more > digging and I found this: > > http://trac.roundcube.net/wiki/Howto_Requirements > > php.ini options: > > memory_limit > 16MB (increase as suitable to support large attachments) > file_uploads enabled (for attachment upload features) > session.auto_start disabled > zend.ze1_compatibility_mode disabled > suhosin.session.encrypt disabled > mbstring.func_overload disabled > magic_quotes_runtime disabled > > > I don't see timezone listed there. > > I will admit that I did not look for php.ini requirements. It looks like > I have all these set properly 'out of the box' on Centos 6.3 > >> You need to edit php.ini and set your timezone if you want those messages >> to go away. >> >> Choose the nearest city in your timezone and that is it. There are only so >> many cities in the list for a reason ... simplicity. >> >> Edit /etc/php.ini with your favorite editor and find/add the following line. >> date.timezone = "America/New_York" >> >> Detroit is in the Eastern US timezone, so set it to NY and you're good. >> Try this, restart your http daemon, and try RC again while checking your >> error_logs. >> >> >>> On 12/27/2012 05:27 PM, Eero Volotinen wrote: >>>> 2012/12/28 Robert Moskowitz <rgm at htt-consult.com>: >>>>> On 12/27/2012 05:01 PM, Reindl Harald wrote: >>>>>> Am 27.12.2012 22:08, schrieb Robert Moskowitz: >>>>>>> On 12/27/2012 03:26 PM, Reindl Harald wrote: >>>>>>>> Am 27.12.2012 21:17, schrieb Robert Moskowitz: >>>>>>>>> I am having problems with RoundCube: >>>>>>>>> >>>>>>>>> 'Your session is invalid or expired' >>>>>>>>> >>>>>>>>> So I went looking for logs and in /var/log/roundcube/errors I find >>> LOTS >>>>>>>>> of warnings about problems with my timezone. Kind of a challenge to >>>>>>>>> copy the log entries over here (will do if needed). >>>>>>>>> >>>>>>>>> Anyway, for right now I am looking as to where my 'Detroit >>>>>>>>> American/New_York' (what I am seeing in Gnomes calendar preferences) >>>>>>>>> string is stored. >>>>>>>>> >>>>>>>>> Roundcube seems to want 'America/New_York'? >>>>>>>>> >>>>>>>>> Shouldn't I be seeing 'America/Detroit' when I look at the calendar >>>>>>>>> selection in Gnome? >>>>>>>> https://www.google.com/search?q=php+timezone >>>>>>>> >>>>>>>> php.ini: >>>>>>>> date.timezone = "your-timezone" >>>>>>> Not the place where Centos is storing timezone. Or perhaps this is >>> where RoundCube is expecting it? >>>>>> but the place where the timezone for php is configured >>>>>> you may guess in which language roundcube is written >>>>> I guessed this from looking at the roundcube errors. So now to dig up >>>>> how to configure php, and not expect the packages that use it to >>>>> configure such base requirements. Got to love it. >>>>> >>>>>> on a proper configured php-setup with full error-reporting >>>>>> you get even warnings if the timezone is not configured, but >>>>>> hey why should people enable warnings on their servers :-) >>>>> Becuase we expect it to work right the first time! DIRTFT! >> Nothing to do with NTP. >> >> >>>>> Actually, there were some decent error messages from Roundcube: >>>>> >>>>> [27-Dec-2012 14:56:47] PHP Warning: 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. In >>>>> case you used any of those methods and you are still getting this >>>>> warning, you most likely misspelled the timezone identifier. We selected >>>>> 'America/New_York' for 'EST/-5.0/no DST' instead in >>>>> /usr/share/roundcubemail/program/include/rcube_config.php on line 96 >>>>> >>>>> [27-Dec-2012 14:56:47] PHP Warning: 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. In >>>>> case you used any of those methods and you are still getting this >>>>> warning, you most likely misspelled the timezone identifier. We selected >>>>> 'America/New_York' for 'EST/-5.0/no DST' instead in >>>>> /usr/share/roundcubemail/program/include/rcube_config.php on line 97 >>>>> >>>>> [27-Dec-2012 14:56:47] PHP Warning: strtotime(): 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 >>>>> 'America/New_York' for 'EST/-5.0/no DST' instead in >>>>> /usr/share/roundcubemail/program/include/rcube_session.php on line 134 >>>>> >>>>> [27-Dec-2012 14:56:47] PHP Warning: 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. In >>>>> case you used any of those methods and you are still getting this >>>>> warning, you most likely misspelled the timezone identifier. We selected >>>>> 'America/New_York' for 'EST/-5.0/no DST' instead in >>>>> /usr/share/roundcubemail/program/include/rcube_mdb2.php on line 603 >>>>> >>>>> So I have taken this problem over to the Roundcube list. But will dig >>>>> into php configuration. Seems Roundcube is expecting more than say >>>>> phpmysqladmin... >>>> err.. >>> http://codingpad.maryspad.com/2012/03/19/setting-the-time-zone-for-php-5-3-x/ >>>> -- >>>> Eero >>>> _______________________________________________ >>>> CentOS mailing list >>>> CentOS at centos.org >>>> http://lists.centos.org/mailman/listinfo/centos >>>> >>> _______________________________________________ >>> CentOS mailing list >>> CentOS at centos.org >>> http://lists.centos.org/mailman/listinfo/centos >>> >> >> > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos