Update database.php

This commit is contained in:
Namhyeon Go 2020-04-29 15:01:04 +09:00 committed by GitHub
parent f2f1c4e458
commit d9802557a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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