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

billmeek noreply at github.com
Mon Apr 17 05:01:03 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: d889da2b0ebdbbfaa59051ae30a6b5b9a5930cdb
      https://github.com/MythTV/mythtv/commit/d889da2b0ebdbbfaa59051ae30a6b5b9a5930cdb
  Author: Bill Meek <bmeek at mythtv.org>
  Date:   2023-04-16 (Sun, 16 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.




More information about the mythtv-commits mailing list