]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
timezone fixed at UTC
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Jul 2010 10:18:24 +0000 (10:18 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Tue, 6 Jul 2010 10:18:24 +0000 (10:18 +0000)
git-svn-id: file:///svn/unbound/trunk@2185 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/replay.c
testcode/testbound.c

index 2ba8d8044e13dab5587148b550525458305b061b..375fe2653f37b08cc57de521af1778c57157f056 100644 (file)
@@ -968,17 +968,17 @@ void testbound_selftest(void)
        free(v);
 
        v = macro_process(store, NULL, "it is ${ctime 123456}");
-       log_assert( v && strcmp(v, "it is Fri Jan  2 11:17:36 1970") == 0);
+       log_assert( v && strcmp(v, "it is Fri Jan  2 10:17:36 1970") == 0);
        free(v);
 
        r = macro_assign(store, "t1", "123456");
        log_assert(r);
        v = macro_process(store, NULL, "it is ${ctime ${$t1}}");
-       log_assert( v && strcmp(v, "it is Fri Jan  2 11:17:36 1970") == 0);
+       log_assert( v && strcmp(v, "it is Fri Jan  2 10:17:36 1970") == 0);
        free(v);
 
        v = macro_process(store, NULL, "it is ${ctime $t1}");
-       log_assert( v && strcmp(v, "it is Fri Jan  2 11:17:36 1970") == 0);
+       log_assert( v && strcmp(v, "it is Fri Jan  2 10:17:36 1970") == 0);
        free(v);
 
        r = macro_assign(store, "x", "1");
index 8c71adf2af643d9cecca569b37a0ebb8094e0108..b283c11d928e482d78ebcbc40d771e15067bb3dd 100644 (file)
@@ -264,7 +264,7 @@ main(int argc, char* argv[])
        struct replay_scenario* scen = NULL;
 
        /* we do not want the test to depend on the timezone */
-       setenv("TZ", "GMT-1", 1);
+       (void)setenv("TZ", "UTC", 1);
 
        log_init(NULL, 0, NULL);
        log_info("Start of %s testbound program.", PACKAGE_STRING);