[mythtv-commits] [MythTV/mythtv] c4b7e4: mythdbcon: force QMetaType::QDateTime values to us...

billmeek noreply at github.com
Mon Apr 24 04:29:54 UTC 2023


  Branch: refs/heads/fixes/33
  Home:   https://github.com/MythTV/mythtv
  Commit: c4b7e4c43321154bf5eaa67af02b7ba7ea6bffb8
      https://github.com/MythTV/mythtv/commit/c4b7e4c43321154bf5eaa67af02b7ba7ea6bffb8
  Author: Bill Meek <bmeek at mythtv.org>
  Date:   2023-04-23 (Sun, 23 Apr 2023)

  Changed paths:
    M mythtv/libs/libmythbase/mythdbcon.cpp

  Log Message:
  -----------
  mythdbcon: force QMetaType::QDateTime values to use MythDate::kDatabase

This cares for a recent ibqt5sql5-mysql update in at least one
distribution where it isn't removing timezone information from
a query causing it to fail.

Log example without patch:
MSqlQuery::exec(DBManager16) UPDATE recorded SET recgroup = 'Deleted', recgroupid = 3 WHERE chanid = '10901' AND starttime = '2023-04-08T05:00:00.000Z' ; <<<< Took 0ms

Log example with patch:
MSqlQuery::exec(DBManager1) UPDATE recorded SET recgroup = 'Deleted', recgroupid = 3 WHERE chanid = '10901' AND starttime = '2023-04-07 05:30:00' ; <<<< Took 0ms

Results seen by users on the Forum and mailing list.

Credits to Mark, Roland and Klaas.

See: https://forum.mythtv.org/viewtopic.php?p=25833#p25833

The Debian solution is due 4/31/2023.

(cherry picked from commit d889da2b0ebdbbfaa59051ae30a6b5b9a5930cdb)




More information about the mythtv-commits mailing list