Add "fclock" cmd to env.sh to a device's clock

fclock sets your device's clock to match your host machine's clock. The
Acer will often reset the system clock back to 2016 when the battery
dies causing SSL certificate handshake errors after booting.

Change-Id: I91279ea0a2751a179a0e60708b7d457d45b74051
diff --git a/env.sh b/env.sh
index d179fce..42bf871 100644
--- a/env.sh
+++ b/env.sh
@@ -802,6 +802,18 @@
   fcmd "/tmp/${target}"
 }
 
+function fclock() {
+  local device_date
+  if [[ "$(uname -s)" = "Darwin" ]]; then
+    device_date=`date +%Y-%m-%dT%T`
+  else
+    device_date=`date -Iseconds`
+  fi
+
+  echo "Setting device's clock to ${device_date}"
+  fcmd "clock --set ${device_date}"
+}
+
 if [[ -n "${ZSH_VERSION}" ]]; then
   ### Zsh Completion
   if [[ ${fpath[(Ie)${FUCHSIA_SCRIPTS_DIR}/zsh-completion]} -eq 0 ]]; then