[dolphin] [Bug 429662] New: Please, let date representation respect the format set by the Plasma Locale Time (LC_TIME environment variable) setting

Anton Latukha bugzilla_noreply at kde.org
Wed Nov 25 22:51:27 GMT 2020


https://bugs.kde.org/show_bug.cgi?id=429662

            Bug ID: 429662
           Summary: Please, let date representation respect the format set
                    by the Plasma Locale Time (LC_TIME environment
                    variable) setting
           Product: dolphin
           Version: 20.08.3
          Platform: unspecified
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: view-engine: details mode
          Assignee: dolphin-bugs-null at kde.org
          Reporter: anton.latukha+reg at gmail.com
                CC: kfm-devel at kde.org
  Target Milestone: ---

Created attachment 133656
  --> https://bugs.kde.org/attachment.cgi?id=133656&action=edit
Settings -> Locale -> Detailed Settings

SUMMARY

At least for "Created, Modified, Accessed" columns it seems to not respect the
`LC_TIME` environment variable.

For example, `LC_TIME=en_DK.UTF-8` is set, which corresponds to ISO 8601 date
format ("YYYY-MM-DD"):
```shell
# date [OPTION]... [+FORMAT]
#   %x   locale's date representation
date +%x

2020-11-26
```
But date in the application gets represented as "DD/MM/YY". It does not make
sense, since main locale setting set is `LANG=en_US.UTF-8`, so, if the
application ignores `LC_TIME=en_DK.UTF-8`, it must use `LANG=en_US.UTF-8` (and
the same `en_US` is in the Dolphin's "Settings -> Configure language". so US
date must be "MM/DD/YY", but what gets shown is `DD/MM/YY`.

Plasma Locale settings is in the attached screenshot.

Shell results:
```shell
locale

LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=uk_UA.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=uk_UA.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=uk_UA.UTF-8
LC_NAME=uk_UA.UTF-8
LC_ADDRESS=uk_UA.UTF-8
LC_TELEPHONE=uk_UA.UTF-8
LC_MEASUREMENT=uk_UA.UTF-8
LC_IDENTIFICATION=uk_UA.UTF-8
LC_ALL=

localectl

   System Locale: LANG=en_US.UTF-8
                  LC_NUMERIC=uk_UA.UTF-8
                  LC_TIME=en_DK.UTF-8
                  LC_MONETARY=uk_UA.UTF-8
                  LC_PAPER=uk_UA.UTF-8
                  LC_NAME=uk_UA.UTF-8
                  LC_ADDRESS=uk_UA.UTF-8
                  LC_TELEPHONE=uk_UA.UTF-8
                  LC_MEASUREMENT=uk_UA.UTF-8
                  LC_IDENTIFICATION=uk_UA.UTF-8
       VC Keymap: us
      X11 Layout: us
       X11 Model: pc105
```


STEPS TO REPRODUCE

1. Reproduce the Locale settings form the "Settings -> Locale -> Detailed
Settings" screenshot attached
2. Reload.
3. Run Dolphin.
4. Select "Details view mode"
5. Add columns "Modified" OR "Created" OR "Accessed"
6. Observe a date format.
7. Compare it to `date +%x` output.

OBSERVED RESULT

Format of date: "DD/MM/YY"

EXPECTED RESULT

Format of date: Short ISO date format (YYYY-MM-DD), or longer ISO format
versions, preferably "YYYY-MM-DD HH:MM".

SOFTWARE/OS VERSIONS

Linux/KDE Plasma:
KDE Plasma Version: 5.20.3
KDE Frameworks Version: 5.76.0
Qt Version: 5.15.1

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the kfm-devel mailing list