Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Roundcube e-mail timezone detected wrong

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

  1. Vliegtuig

    Vliegtuig Well-Known Member

    Joined:
    Jan 21, 2010
    Messages:
    74
    Likes Received:
    2
    Trophy Points:
    58
    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,563
    Likes Received:
    43
    Trophy Points:
    308
    cPanel Access Level:
    Root Administrator
    This is a bug in Roundcube and will be fixed in Roundcube 0.4.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Zaf

    Zaf Well-Known Member

    Joined:
    Aug 22, 2005
    Messages:
    117
    Likes Received:
    0
    Trophy Points:
    166
    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:
    58
    Great, thanks for this fix :)
     
  5. kfr

    kfr Registered

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

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. cPanelTristan

    cPanelTristan Quality Assurance Analyst
    Staff Member

    Joined:
    Oct 2, 2010
    Messages:
    7,608
    Likes Received:
    32
    Trophy Points:
    238
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice