[Koha-bugs] [Bug 30468] koha-mysql does not honor Koha's timezone setting

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jun 29 19:52:13 CEST 2022


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30468

Michal Urban <michalurban177 at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #133000|0                           |1
        is obsolete|                            |

--- Comment #5 from Michal Urban <michalurban177 at gmail.com> ---
Created attachment 136746
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=136746&action=edit
Bug 30468: koha-mysql does not honor Koha's timezone setting

If I run a query like "SELECT NOW()" from a koha report, I will get a different
answer than if I had run it from koha-mysql.
In Koha, we set the timezone for each database connection.
However, koha-mysql does not do this, so instead we are left using the default
timezone of the database.

Test Plan:
1) Set your time zone to something other than the database time zone
2) run "SELECT NOW()" using debian/scripts/koha-mysql
   *not* /usr/sbin/koha-mysql
3) Note you get the database timezone's current time
4) Apply this patch
5) Repeat step 2
6) Now you get the correct time!

Signed-off-by: Michal Urban <michalurban177 at gmail.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list