We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37905
    • 13 Posts
    Helo All
    May I change timezone for session mysql this:
    edit config.inc.php:
    $driver_options = array (PDO::MYSQL_ATTR_INIT_COMMAND => 'SET time_zone="+5:00";',
    );

    I'm hav't "root" access to mysql, and not permisiion to change GLOBAL time_zone

    mysql> SET GLOBAL time_zone ='+5:00' ;
    ERROR 1227 (42000): Access denied; you need the SUPER privilege for this operation


    but
    mysql> SET time_zone="+5:00";
    Query OK, 0 rows affected (0.00 sec)

    work fine.

    What perfectly change mysql timezone for session?
    (by editing config.inc.php - hav't results...)
      • 23299
      • 1,161 Posts
      Have you tried setting the timezone from within the Revo Manager setting?
        • 37905
        • 13 Posts
        Thanks for answer!
        Yes, I'm first try it.
        But not working change templating resource. (I'm using revo 2.2)

        It's change PHP time zone, but I wont change MySQL time zone. And if after that I change PHP timezone - all right - templating change on resource work fine.
        Now I have: change templating resourse fine, all working, but time back on two hour - it is not carrefull for me.
        And who know how php-hack change templating with `time-zone PHP` != `timezone MySQL` working?
          • 37905
          • 13 Posts
          Settings "server_offset_time" fix it! [ed. note: faitnomore last edited this post 14 years, 6 months ago.]