summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtests.sh3
-rw-r--r--tests/test_printf_times.out6
2 files changed, 5 insertions, 4 deletions
diff --git a/tests.sh b/tests.sh
index 5d5a3b5..be68017 100755
--- a/tests.sh
+++ b/tests.sh
@@ -4,6 +4,7 @@ set -o physical
umask 022
export LC_ALL=C
+export TZ=UTC
# The temporary directory that will hold our test data
TMP="$(mktemp -d "${TMPDIR:-/tmp}"/bfs.XXXXXXXXXX)"
@@ -977,7 +978,7 @@ function test_printf_escapes() {
}
function test_printf_times() {
- TZ=UTC bfs_diff times -type f -printf '%p | %a %AY-%Am-%Ad %AH:%AI:%AS %T@ | %t %TY-%Tm-%Td %TH:%TI:%TS %T@\n'
+ bfs_diff times -type f -printf '%p | %a %AY-%Am-%Ad %AH:%AI:%AS %T@ | %t %TY-%Tm-%Td %TH:%TI:%TS %T@\n'
}
function test_printf_leak() {
diff --git a/tests/test_printf_times.out b/tests/test_printf_times.out
index ddaef7d..7e7d256 100644
--- a/tests/test_printf_times.out
+++ b/tests/test_printf_times.out
@@ -1,3 +1,3 @@
-times/a | Sat Dec 14 05:00:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686800.0000000000 | Sat Dec 14 05:00:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686800.0000000000
-times/b | Sat Dec 14 05:01:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686860.0000000000 | Sat Dec 14 05:01:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686860.0000000000
-times/c | Sat Dec 14 05:02:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686920.0000000000 | Sat Dec 14 05:02:00.0000000000 1991 1991-12-14 05:05:00.0000000000 692686920.0000000000
+times/a | Sat Dec 14 00:00:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668800.0000000000 | Sat Dec 14 00:00:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668800.0000000000
+times/b | Sat Dec 14 00:01:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668860.0000000000 | Sat Dec 14 00:01:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668860.0000000000
+times/c | Sat Dec 14 00:02:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668920.0000000000 | Sat Dec 14 00:02:00.0000000000 1991 1991-12-14 00:12:00.0000000000 692668920.0000000000