• R/O
  • HTTP
  • SSH
  • HTTPS

提交

标签
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

system/core


Commit MetaInfo

修订版fa997780a596bb1b74dc8c83552ccfc5c94a7e4d (tree)
时间2017-04-28 00:37:06
作者Xuefer <xuefer@gmai...>
CommiterChih-Wei Huang

Log Message

init sysclktz: fix clock without local hack

Change-Id: I96ce84a20c0ed3159acf7e141fa2e79f6860abf9
Signed-off-by: Xuefer <xuefer@gmail.com>

更改概述

差异

--- a/init/builtins.cpp
+++ b/init/builtins.cpp
@@ -761,7 +761,8 @@ int do_sysclktz(int nargs, char **args)
761761 return -1;
762762 }
763763 } else {
764- return -1;
764+ tz.tz_minuteswest = std::stoi(args[1]);
765+ return settimeofday(NULL, &tz);
765766 }
766767
767768 return 0;