提交 072dbe57 编写于 作者: mysterywolf's avatar mysterywolf

format & add clear tm_isdst

上级 66e2a942
......@@ -88,6 +88,8 @@ struct tm *gmtime_r(const time_t *timep, struct tm *r)
;
r->tm_mon = i;
r->tm_mday += work - __spm[i];
r->tm_isdst = 0;
return r;
}
......@@ -103,8 +105,8 @@ struct tm* localtime_r(const time_t* t, struct tm* r)
time_t local_tz;
int utc_plus;
utc_plus = 3600 * 0; /* GTM: UTC+0 */
local_tz = *t + utc_plus;
utc_plus = 0; /* GTM: UTC+0 */
local_tz = *t + utc_plus * 3600;
return gmtime_r(&local_tz, r);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册