Where Is Timezone String Stored?

Home » CentOS » Where Is Timezone String Stored?
CentOS 5 Comments

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?

5 thoughts on - Where Is Timezone String Stored?

  • Not the place where CentOS is storing timezone. Or perhaps this is where RoundCube is expecting it? This file is at its default content.
    It is timestamped Jul 3.

    And /etc/localtime is a binary file. A little digging and it SEEMS that files are copied to /etc/localtime from /usr/share/zonetime ?

    But I can’t figure out what RoundCube is doing. Probably will have to go and join that list…

  • The timezone in PHP should be configured according to your needs manually. RoundCube is looking at /etc/php.ini , if you have installed php from yum on CentOS

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

    Becuase we expect it to work right the first time! DIRTFT!

    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…

LEAVE A COMMENT