[tests] set TZ when doing touch

This commit is contained in:
Tim Stack 2022-09-21 22:47:46 -07:00
parent df0d3aed0c
commit fd19759bf5
2 changed files with 2 additions and 2 deletions

View File

@ -1,2 +1,2 @@
basename(filepath)  descriptor  mimetype  content 
logfile_syslog.1.gz net.zlib.gzip.header application/json {"name":"logfile_syslog.1","mtime":"2007-11-03T16:23:00.000","comment":""} 
logfile_syslog.1.gz net.zlib.gzip.header application/json {"name":"logfile_syslog.1","mtime":"2007-11-03T09:23:00.000","comment":""} 

View File

@ -312,7 +312,7 @@ Nov 03 09:23:38 2007 -- 000
Nov 03 09:47:02 2007 -- 000
EOF
touch -t 200711030923 ${srcdir}/logfile_syslog.1
env TZ=UTC touch -t 200711030923 ${srcdir}/logfile_syslog.1
run_test ./drive_logfile -t -f syslog_log ${srcdir}/logfile_syslog.1
check_output "Syslog timestamp interpreted incorrectly for year end?" <<EOF