提交 39ff4b5a 编写于 作者: mysterywolf's avatar mysterywolf

修改时区计算公式的错误

上级 2645aec2
......@@ -101,10 +101,10 @@ struct tm* gmtime(const time_t* t)
struct tm* localtime_r(const time_t* t, struct tm* r)
{
time_t local_tz;
int timezone;
int utc;
timezone = 0 * 3600 * 8; /* GTM: UTC+0 */
local_tz = *t + timezone;
utc = 3600 * 0; /* GTM: UTC+0 */
local_tz = *t + utc;
return gmtime_r(&local_tz, r);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册