aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-11-25 18:32:18 -0800
committerGravatar Hoa V. DINH <dinh.viet.hoa@gmail.com>2014-11-25 18:32:18 -0800
commitd67bf2283cf57ce3414fcf3bd775e53b32c79208 (patch)
treede7350327ee2aa411714ce774a82d5520dfe61ab
parent85277ec69f329eab20ed50cd4634fcc713b1a8e4 (diff)
init timezone
-rw-r--r--unittest/unittest.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/unittest/unittest.cpp b/unittest/unittest.cpp
index 43d43168..8783e522 100644
--- a/unittest/unittest.cpp
+++ b/unittest/unittest.cpp
@@ -1,6 +1,7 @@
#include <MailCore/MailCore.h>
#include <dirent.h>
#include <math.h>
+#include <time.h>
using namespace mailcore;
@@ -299,6 +300,8 @@ static void testSummary(String * path)
int main(int argc, char ** argv)
{
+ tzset();
+
if (argc < 2) {
fprintf(stderr, "syntax: unittestcpp [unittestdatadir]\n");
exit(EXIT_FAILURE);