mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
BF: specify explicit time offset not a time zone name to avoid needing tzdata during testing
This commit is contained in:
parent
7982d1e627
commit
a639f0b083
1 changed files with 4 additions and 1 deletions
|
|
@ -95,7 +95,10 @@ def setUpMyTime():
|
|||
# Set the time to a fixed, known value
|
||||
# Sun Aug 14 12:00:00 CEST 2005
|
||||
# yoh: we need to adjust TZ to match the one used by Cyril so all the timestamps match
|
||||
os.environ['TZ'] = 'Europe/Zurich'
|
||||
# This offset corresponds to Europe/Zurich timezone. Specifying it
|
||||
# explicitly allows to avoid requiring tzdata package to be installed during
|
||||
# testing. See https://bugs.debian.org/855920 for more information
|
||||
os.environ['TZ'] = 'CET-01CEST-02,M3.5.0,M10.5.0'
|
||||
time.tzset()
|
||||
MyTime.setTime(1124013600)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue