Update database.php
This commit is contained in:
parent
f2f1c4e458
commit
d9802557a6
|
@ -907,7 +907,7 @@ if(!is_fn("get_db_timediff")) {
|
||||||
function get_db_timediff($a, $b) {
|
function get_db_timediff($a, $b) {
|
||||||
$dt = 0;
|
$dt = 0;
|
||||||
|
|
||||||
$sql = "select timediff(:a, :b) as dt";
|
$sql = "select time_to_sec(timediff(:a, :b)) as dt";
|
||||||
$bind = array(
|
$bind = array(
|
||||||
"a" => $a,
|
"a" => $a,
|
||||||
"b" => $b
|
"b" => $b
|
||||||
|
|
Loading…
Reference in New Issue
Block a user