[CentOS] For what it is worth - Re: Where is timezone string stored?

Fri Dec 28 00:17:29 UTC 2012
SilverTip257 <silvertip257 at gmail.com>

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.
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
>



-- 
---~~.~~---
Mike
//  SilverTip257  //