system/core
修订版 | fa997780a596bb1b74dc8c83552ccfc5c94a7e4d (tree) |
---|---|
时间 | 2017-04-28 00:37:06 |
作者 | Xuefer <xuefer@gmai...> |
Commiter | Chih-Wei Huang |
init sysclktz: fix clock without local hack
Change-Id: I96ce84a20c0ed3159acf7e141fa2e79f6860abf9
Signed-off-by: Xuefer <xuefer@gmail.com>
@@ -761,7 +761,8 @@ int do_sysclktz(int nargs, char **args) | ||
761 | 761 | return -1; |
762 | 762 | } |
763 | 763 | } else { |
764 | - return -1; | |
764 | + tz.tz_minuteswest = std::stoi(args[1]); | |
765 | + return settimeofday(NULL, &tz); | |
765 | 766 | } |
766 | 767 | |
767 | 768 | return 0; |