[PATCH] update_version.sh: use non-localised date representation
Keng-Yu Lin
kengyu at canonical.com
Fri Jun 28 08:28:06 UTC 2013
The patch makes the date representation look like this:
2013-06-28 08:23:12
(tested in zh_TW, en_US, en_GB locales.)
Also date and time is in time zone UTC+0 with the patch.
Signed-off-by: Keng-Yu Lin <kengyu at canonical.com>
---
update_version.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/update_version.sh b/update_version.sh
index 2eefe10..a3a04ca 100755
--- a/update_version.sh
+++ b/update_version.sh
@@ -27,7 +27,7 @@ cat << EOF > src/lib/include/fwts_version.h
*/
EOF
echo '#define FWTS_VERSION "'$version'"' >> src/lib/include/fwts_version.h
-echo '#define FWTS_DATE "'`date "+%x %T"`'"' >> src/lib/include/fwts_version.h
+echo '#define FWTS_DATE "'`date --utc "+%F %T"`'"' >> src/lib/include/fwts_version.h
git add src/lib/include/fwts_version.h
git commit -s -m"lib: fwts_version.h - update to $version"
git tag -m'"Version '$1'"' $1
--
1.8.1.2
More information about the fwts-devel
mailing list