[Kimchi-devel] [PATCH] [Wok] Bug fix #169: Display user log date in numeric format

Lucio Correia luciojhc at linux.vnet.ibm.com
Thu Oct 13 13:27:48 UTC 2016


Reviewed-By: Lucio Correia <luciojhc at linux.vnet.ibm.com>

On 11/10/2016 17:46, Aline Manera wrote:
> Also rename Timezone to Zone to avoid waste of space in page.
>
> Signed-off-by: Aline Manera <alinefm at linux.vnet.ibm.com>
> ---
>  ui/js/src/wok.utils.js  | 2 +-
>  ui/js/wok.user-log.js   | 1 +
>  ui/pages/i18n.json.tmpl | 2 +-
>  3 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/ui/js/src/wok.utils.js b/ui/js/src/wok.utils.js
> index dcec823..80bdb77 100644
> --- a/ui/js/src/wok.utils.js
> +++ b/ui/js/src/wok.utils.js
> @@ -244,7 +244,7 @@ wok.datetimeLocaleConverter = function datetimeLocaleConverter(datetime_string,
>
>  wok.dateLocaleConverter = function dateLocaleConverter(date_string, locale){
>       var dte = new moment(date_string);
> -     var options = { year: 'numeric', month: 'long', day: 'numeric' };
> +     var options = { year: 'numeric', month: 'numeric', day: 'numeric' };
>       return dte._d.toLocaleDateString(locale, options);
>  }
>
> diff --git a/ui/js/wok.user-log.js b/ui/js/wok.user-log.js
> index bac5439..41bc765 100644
> --- a/ui/js/wok.user-log.js
> +++ b/ui/js/wok.user-log.js
> @@ -103,6 +103,7 @@ wok.listUserLogConfig = function() {
>      }, {
>        "column-id": 'zone',
>        "converter": 'string',
> +      "width": "6%",
>        "title": i18n['WOKSETT0013M']
>      }, {
>        "column-id": 'status',
> diff --git a/ui/pages/i18n.json.tmpl b/ui/pages/i18n.json.tmpl
> index 17ee40c..220f8e5 100644
> --- a/ui/pages/i18n.json.tmpl
> +++ b/ui/pages/i18n.json.tmpl
> @@ -53,7 +53,7 @@
>      "WOKSETT0010M": "$_("No results found!")",
>      "WOKSETT0011M": "$_("Loading...")",
>      "WOKSETT0012M": "$_("Actions")",
> -    "WOKSETT0013M": "$_("Timezone")",
> +    "WOKSETT0013M": "$_("Zone")",
>      "WOKSETT0014M": "$_("IP Address")",
>      "WOKSETT0015M": "$_("Status")",
>


-- 
Lucio Correia
Software Engineer
IBM LTC Brazil




More information about the Kimchi-devel mailing list