unit-tests: enforce CET/CEST timezone to properly test non-UTC time formatting

This commit is contained in:
Martin Willi
2013-06-21 10:53:22 +02:00
parent 44886a0667
commit df76881f11
+6
View File
@@ -18,6 +18,8 @@
#include <library.h>
#include <utils/utils.h>
#include <time.h>
/*******************************************************************************
* object storage on lib
*/
@@ -391,6 +393,10 @@ Suite *utils_suite_create()
Suite *s;
TCase *tc;
/* force a timezone to match non-UTC conversions */
setenv("TZ", "Europe/Zurich", 1);
tzset();
s = suite_create("utils");
tc = tcase_create("objects");