fix NTP SYSTIME is UTC
Change-Id: I0499176c83fe05e6a8cd4c06e7e529e7ca7e3834
diff --git a/mbtk/liblynq_lib/src/lynq_time.c b/mbtk/liblynq_lib/src/lynq_time.c
index 99e7d2c..a288c86 100644
--- a/mbtk/liblynq_lib/src/lynq_time.c
+++ b/mbtk/liblynq_lib/src/lynq_time.c
@@ -126,15 +126,16 @@
#if 1
struct tm CurlocalTime;
localtime_r(&time, &CurlocalTime);
- CurlocalTime.tm_hour += 8;
+ // CurlocalTime.tm_hour += 8; //cst
char dateTime[30];
strftime(dateTime, 30, "%Y-%m-%d %H:%M:%S %A", &CurlocalTime);
- printf("dateTime:%s, %ld\n", dateTime, time+28800);
+ // printf("dateTime:%s, %ld\n", dateTime, time+28800); //cst
+ printf("dateTime:%s, %ld\n", dateTime, time);
struct timeval tv;
tv.tv_sec = time;
- tv.tv_sec += 28800;
+ // tv.tv_sec += 28800; //cst
tv.tv_usec = 0;
if(settimeofday(&tv, NULL)) {