From 9cc04df973f3146bd954b1d4fef9d8c7018e8eb2 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Fri, 15 Feb 2019 21:35:29 +0000 Subject: [PATCH] move the password expiry date to be php generated so it works fine on all databases --- functions.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.inc.php b/functions.inc.php index 091e45e4..387fc65f 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -1782,7 +1782,7 @@ function db_insert($table, array $values, $timestamp = array('created', 'modifie if (db_sqlite()) { $values['password_expiry'] = "datetime('now', '$password_expiration_value day')"; } else { - $values['password_expiry'] = "now() + interval " . $password_expiration_value . " day"; + $values['password_expiry'] = date('Y-m-d H:i', strtotime("+$password_expiration_value day")); } } } else {