Fix date formatting issue from git log

For ubuntu14.04-based git(version 1.9.1), --date does not support option format.
To fix this issue, use date command to format timestamp retrieve from git log.

Change-Id: I4c252a09e0ff09596b48634e4df95bed78ebeefd
diff --git a/rules.mk b/rules.mk
index a47303e..7d1bbd2 100644
--- a/rules.mk
+++ b/rules.mk
@@ -12,7 +12,7 @@
 
 BUILD_DATE=$(shell date -u +%Y-%m-%dT%TZ)
 VCS_REF=$(shell git log --pretty=format:%H -n 1)
-VCS_REF_DATE=$(shell git log --pretty=format:%cd --date=format:%FT%T%z -n 1)
+VCS_REF_DATE=$(shell date -d @$(shell git log --pretty=format:%ct -n 1) +%FT%T%z)
 BRANCHES=$(shell repo --color=never --no-pager branches 2>/dev/null | wc -l)
 STATUS=$(shell repo --color=never --no-pager status . | tail -n +2 | wc -l)
 MODIFIED=$(shell test $(BRANCHES) -eq 0 && test $(STATUS) -eq 0 || echo "[modified]")