]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: (lslogins) use GMT timezone
authorKarel Zak <kzak@redhat.com>
Tue, 18 Feb 2025 08:22:56 +0000 (09:22 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Feb 2025 08:24:42 +0000 (09:24 +0100)
Signed-off-by: Karel Zak <kzak@redhat.com>
tests/expected/lslogins/checkuser
tests/ts/lslogins/checkuser

index 38b2a8f1339ea64ca3ff41a92195664082d3f62e..43f9e9d550d9c3794fee81c700e22af078d4385c 100644 (file)
@@ -1,2 +1,2 @@
 USER                LAST-LOGIN LAST-TTY LAST-HOSTNAME
-root 2024-01-29T07:45:15-08:00 test-tty test-host
+root 2024-01-29T15:45:15+00:00 test-tty test-host
index 0984955cb7be33fa967c42a5a3052331ba4ea16a..035dbad563322a6d478b737d5d90e5a91a6380d9 100755 (executable)
@@ -15,10 +15,11 @@ fi
 
 DB_FILE="$TS_OUTDIR/${TS_TESTNAME}.db"
 
+export TZ="GMT"
 sqlite3 "$DB_FILE" < $TS_SELF/create_db.sql
 
 # tests for lastlog2 environment
-TZ=US/Pacific "$TS_CMD_LSLOGINS" --lastlog-file=/dev/null \
+$TS_CMD_LSLOGINS --lastlog-file=/dev/null \
        --lastlog2-file="$DB_FILE" \
        --wtmp-file=/dev/null \
        --btmp-file=/dev/null \