Ack: [PATCH] update_version.sh: use non-localised date representation

Colin Ian King colin.king at canonical.com
Fri Jun 28 08:36:18 UTC 2013


On 28/06/13 09:28, Keng-Yu Lin wrote:
> 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
> 
Thanks Keng-Yu - I checked it from my locale and it looks good.

Acked-by: Colin Ian King <colin.king at canonical.com>





More information about the fwts-devel mailing list