summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Fearn <jfearn@redhat.com>2022-06-08 09:23:56 +1000
committerJeff Fearn <jfearn@redhat.com>2022-06-08 09:23:56 +1000
commit0b87eac09200b0cd3707ad234af84c18ceb3149b (patch)
tree712fa25acd80eb7005c4b4ab89c95ac0f19af9d0
parentBug 2004321 - Convert simple fields to a user preference (diff)
downloadbugzilla-0b87eac09200b0cd3707ad234af84c18ceb3149b.tar.gz
bugzilla-0b87eac09200b0cd3707ad234af84c18ceb3149b.tar.bz2
bugzilla-0b87eac09200b0cd3707ad234af84c18ceb3149b.zip
Bug 2075342 - Support session time limits
Use 24 hour time format. Change-Id: I507468aa737b541ae9a4fe21709138a30c5e1d55
-rw-r--r--Bugzilla/Auth/Persist/Cookie.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/Auth/Persist/Cookie.pm b/Bugzilla/Auth/Persist/Cookie.pm
index f08238012..2d14395c9 100644
--- a/Bugzilla/Auth/Persist/Cookie.pm
+++ b/Bugzilla/Auth/Persist/Cookie.pm
@@ -72,7 +72,7 @@ sub persist_login {
# new Date("2022-05-11T07:05:13.000Z")
$expires = $dbh->selectrow_array(
- qq{SELECT TO_CHAR(expires, 'YYYY-MM-DD"T"HH:MI:SS.000"Z"')
+ qq{SELECT TO_CHAR(expires, 'YYYY-MM-DD"T"HH24:MI:SS.000"Z"')
FROM logincookies
WHERE userid = ? and cookie = ?}, undef, $user->id, $login_cookie
);