[Feature]add systime for lynq gnss
Change-Id: If8fd35613b0d5471e92ce6d164f7677d43493dfb
diff --git a/framework/lynq-ril-service/src/common.cpp b/framework/lynq-ril-service/src/common.cpp
index 6827a6b..2f61845 100755
--- a/framework/lynq-ril-service/src/common.cpp
+++ b/framework/lynq-ril-service/src/common.cpp
@@ -836,14 +836,11 @@
time_t t1, t2;
struct tm * ptm;
char buf[255];
- char date_buf[32] = "";
int dShiftSec;
dShiftSec = dGMTval * 15 * 60;
t1 = mktime(src);
- strftime(date_buf, sizeof(date_buf), "%Z", src);
- if (strcmp(date_buf, "CST") == 0)
- t1 = t1 + 8 * 60 * 60;
+
t2 = (time_t)(t1 + dShiftSec);
ptm = gmtime(&t2);
@@ -869,7 +866,7 @@
memset(&tm, 0, sizeof(struct tm));
strptime(strTime, "%Y/%m/%d,%H:%M:%S", &tm);
- adjustGMT2LocalTime(&tm, dGMTval);
+ //adjustGMT2LocalTime(&tm, dGMTval);
t = mktime(&tm);