Skip to content

SET time_zone = "+00:00" and pool #924

@vinnitu

Description

@vinnitu

Hi.

I need UTC in my TIME queries, but I don't have permission on target machine to do global modification on time settings in mysql.ini

Trouble can me solved with SET time_zone = "+00:00", but only if I use mysql.createConnection() and exec SET query at beginning of all rest operations.

In my application I prefer use mysql.createPool and I don't known where I need to exec SET time_zone...

As I understand pool can recreate connection if it is was broken or timed out. And we need apply SET time_zone on every reconnect (connection)...

Please help me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions