Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-8007

people want locale-aware time formatting (was: Time incorrectly displayed in the web UI)

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.1
    • Fix Version/s: feature-backlog
    • Component/s: UI
    • Security Level: Public
    • Labels:
      None
    • Environment:
      Server running Ubuntu 12.10 and during installation I set the location to Europe/Oslo
      Client machine running MacOSX, and google chrome Version 26.0.1410.43

      Description

      The time listed in the web UI use AM/PM and not the 24 hour clock used in Norway. I've pasted the output from date running on the Ubuntu server and what my system clock displays on my desktop into the picture.

      In the language settings in chrome I've also configured that I prefer pages in norwegian bokmål before english etc..

      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        I'm also quite confused by those AM/PM (i.e. 12:30 PM is what ?). But there doesn't seem to be a robust way of solving this short of explicit "use 24-hour time" setting (or explicit "configuration for Trond" .

        Alternatively we could ignore those stone age americans and just force everyone into 24-hour time format. AFAIK, They are supposed to gradually drop their miles and pounds and other nonstandard stuff.

        Anyway, I'm afraid we won't have time for this in foreseeable future. Assigning on Anil (assuming he took over Dipti on all ns-server matters) for prioritization.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - I'm also quite confused by those AM/PM (i.e. 12:30 PM is what ?). But there doesn't seem to be a robust way of solving this short of explicit "use 24-hour time" setting (or explicit "configuration for Trond" . Alternatively we could ignore those stone age americans and just force everyone into 24-hour time format. AFAIK, They are supposed to gradually drop their miles and pounds and other nonstandard stuff. Anyway, I'm afraid we won't have time for this in foreseeable future. Assigning on Anil (assuming he took over Dipti on all ns-server matters) for prioritization.
        Hide
        trond Trond Norbye added a comment -

        What about just honoring the locale on the server?

        Show
        trond Trond Norbye added a comment - What about just honoring the locale on the server?
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Another alternative is adding time/data locale awareness into our JS code (with explicit settings or maybe even some automatic inferring of locale, which I'm not sure is possible at all). There may be libraries for that too but I'm not very eager relying on (always questionable) 3rd party components without really good reasons.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Another alternative is adding time/data locale awareness into our JS code (with explicit settings or maybe even some automatic inferring of locale, which I'm not sure is possible at all). There may be libraries for that too but I'm not very eager relying on (always questionable) 3rd party components without really good reasons.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Answering Trond: We render those labels on client side. And even if we do that on server that also means server has to interpret preferred language header as time/zone locale and act. Erlang doesn't have ready packages for that btw.

        Note however that my boxes are set up for english language, but time is displayed in standard way. And I don't want am/pm if I can choose. So it's not as simple as it may sound.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Answering Trond: We render those labels on client side. And even if we do that on server that also means server has to interpret preferred language header as time/zone locale and act. Erlang doesn't have ready packages for that btw. Note however that my boxes are set up for english language, but time is displayed in standard way. And I don't want am/pm if I can choose. So it's not as simple as it may sound.
        Hide
        maria Maria McDuff (Inactive) added a comment -

        anil, do we need this for 2.0.2?

        Show
        maria Maria McDuff (Inactive) added a comment - anil, do we need this for 2.0.2?
        Hide
        anil Anil Kumar added a comment -

        Moving this out to 2.1. We will revisit this then and decide on the standard time to display.

        Show
        anil Anil Kumar added a comment - Moving this out to 2.1. We will revisit this then and decide on the standard time to display.

          People

          • Assignee:
            dfinlay Dave Finlay
            Reporter:
            trond Trond Norbye
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:

              Gerrit Reviews

              There are no open Gerrit changes