From: Wouter Wijngaards Date: Tue, 6 Jul 2010 10:18:24 +0000 (+0000) Subject: timezone fixed at UTC X-Git-Tag: release-1.4.6rc1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7d9caee4810bcd4c353f27d672461f46f4c987ee;p=thirdparty%2Funbound.git timezone fixed at UTC git-svn-id: file:///svn/unbound/trunk@2185 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/replay.c b/testcode/replay.c index 2ba8d8044..375fe2653 100644 --- a/testcode/replay.c +++ b/testcode/replay.c @@ -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"); diff --git a/testcode/testbound.c b/testcode/testbound.c index 8c71adf2a..b283c11d9 100644 --- a/testcode/testbound.c +++ b/testcode/testbound.c @@ -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);