mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Remove all usage of UNIX_TIMESTAMP in web interface
UNIX_TIMESTAMP is not part of the SQL standard. Instead, all usage in the web interface is changed to use PHP's time() function. Signed-off-by: Mark Weiman <mark.weiman@markzz.com> Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
parent
c3f464f50f
commit
3e442a0f7d
4 changed files with 16 additions and 16 deletions
|
@ -149,7 +149,7 @@ function pkgreq_file($ids, $type, $merge_into, $comments) {
|
|||
$q.= "UsersID, Comments, RequestTS) VALUES (" . $type_id . ", ";
|
||||
$q.= $base_id . ", " . $dbh->quote($pkgbase_name) . ", ";
|
||||
$q.= $dbh->quote($merge_into) . ", " . $uid . ", ";
|
||||
$q.= $dbh->quote($comments) . ", UNIX_TIMESTAMP())";
|
||||
$q.= $dbh->quote($comments) . ", " . strval(time()) . ")";
|
||||
$dbh->exec($q);
|
||||
$request_id = $dbh->lastInsertId();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue