commit 615e0b26c900a4afbe94daa8ec607786c0b3c34b
parent 2423db457d0fcc4520f85de80d6a3ef3c0f11185
Author: Richard Ipsum <richardipsum@vx21.xyz>
Date: Thu, 1 Apr 2021 13:09:03 +0100
Set TZ to null string in sanitised env
Without this tests might be subject to local timezone changes, like british
summer time, better to assert that the timezone is always UTC.
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tyarn.lua.in b/tyarn.lua.in
@@ -1,6 +1,6 @@
#!/usr/bin/env ##LUA_INTERP##
--
--- Copyright © 2019 - 2020 Richard Ipsum
+-- Copyright © 2019 - 2021 Richard Ipsum
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
@@ -327,7 +327,8 @@ function cleanenv()
['LC_ALL'] = 'C',
['USER'] = 'tomjon',
['USERNAME'] = 'tomjon',
- ['LOGNAME'] = 'tomjon'
+ ['LOGNAME'] = 'tomjon',
+ ['TZ'] = ''
}
end