The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Roundcube e-mail timezone detected wrong

Discussion in 'E-mail Discussions' started by Vliegtuig, Jul 21, 2010.

  1. Vliegtuig

    Vliegtuig Well-Known Member

    Joined:
    Jan 21, 2010
    Messages:
    74
    Likes Received:
    2
    Trophy Points:
    6
    I just discovered that our Roundcube setup seems to differ by -2 hours from the actual server timezone. I have searched for this problem but have not seen it occur before.

    Currently, it can be fixed by manually selecting the timezone in Roundcube, but of course, it would be better to have it being automatically correctly detected.

    Any ideas?
     
  2. cPanelKenneth

    cPanelKenneth cPanel Development
    Staff Member

    Joined:
    Apr 7, 2006
    Messages:
    4,458
    Likes Received:
    22
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
    This is a bug in Roundcube and will be fixed in Roundcube 0.4.
     
  3. Zaf

    Zaf Well-Known Member

    Joined:
    Aug 22, 2005
    Messages:
    119
    Likes Received:
    0
    Trophy Points:
    16
    For now, you should be able to fix this by changing line number ~884 of /usr/local/cpanel/base/3rdparty/roundcube/program/include/main.inc

    Code:
    884c884
    <     $tz = isset($_SESSION['timezone']) ? $_SESSION['timezone'] : date('Z')/3600;
    ---
    >     $tz=date('Z')/3600;
     
  4. Vliegtuig

    Vliegtuig Well-Known Member

    Joined:
    Jan 21, 2010
    Messages:
    74
    Likes Received:
    2
    Trophy Points:
    6
    Great, thanks for this fix :)
     
  5. kfr

    kfr Registered

    Joined:
    Jun 16, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Thanks, this solved the problem.
    But why is it still wrong in Roundcube-0.5.2 ?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,745
    Likes Received:
    662
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    This thread was originally posted nearly a year ago so it's likely the problem you are experiencing is due to a different cause. Could you open a support ticket for this issue so we may check further?

    Submit A Ticket

    Thank you.
     
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,623
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    somewhere over the rainbow
    cPanel Access Level:
    Root Administrator
    Also, could you post the ticket number if you do open one. Of note, we've seen issues where MySQL is reporting a different time than the server's time. You can see if that is the case by doing the following:

    Code:
    date
    mysql
    mysql > select now();
    If you see a different time when using date on the server over the time reported by MySQL when entering the select now(); command in MySQL, then simply try restarting MySQL and re-check if the time is now showing the same in MySQL command line.
     
Loading...

Share This Page