Commit 654740bf authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

time needs to be in quotes

parent d9494184
......@@ -62,7 +62,7 @@ function cmd_time(){
if (isset($_GET['apply'])||(abs($ts_s-$t)>24*3600)){
exec("date -s $ts_formatted");
exec("date -s '$ts_formatted'");
exec("hwclock --systohc");
print("Timestamps differ by more than 24h. Camera and fpga time updated.\n");
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment