Open unissoft-bj opened 9 years ago
http://stackoverflow.com/questions/6203857/how-can-i-set-the-system-time-in-java
use local time to update the system time. The command need be admin or running as sudo.
有可能的问题:单引号造成 sudo /root/ihostset.sh systime local '2015-06-02 19:08:05'
系统时间
ihost向前端提供当前的系统时间,此处缺一个rest
return json: { id: 1 content: "欢迎使用Matrix WIFI, 88-88-88-FF-FF-88!" now: "2015-06-02 09:29:34" }
设置系统时间,测试情况