<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>408662</bug_id>
          
          <creation_ts>2019-06-13 19:52:21 +0000</creation_ts>
          <short_desc>Proper time formatting for locales where AMPM is going in front of time value</short_desc>
          <delta_ts>2025-02-26 14:01:54 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>Digital Clock widget</component>
          <version>master</version>
          <rep_platform>Other</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CONFIRMED</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=393956</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Shinjo Park">kde</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>momo.cao</cc>
    
    <cc>nate</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1862599</commentid>
    <comment_count>0</comment_count>
    <who name="Shinjo Park">kde</who>
    <bug_when>2019-06-13 19:52:21 +0000</bug_when>
    <thetext>SUMMARY

On certain locales like Korean, time in 12-hour format has AM/PM indicator prefixed to the time value like AM 12:00. Currently digital clock applet does not support such situation.

STEPS TO REPRODUCE
1. Set locale to ko_KR (or other locale where 12-hour time format is AP hh:mm
2. Set digital clock to 12-hour mode
3. See the clock

OBSERVED RESULT
AM/PM indicator goes after time value (in example for Korean: 12:00 오전)

EXPECTED RESULT
AM/PM indicator goes in front of time value (in example for Korean: 오전 12:00)

SOFTWARE/OS VERSIONS
I checked the source code of master, function timeFormatCorrection(timeFormatString) of contents/ui/DigitalClock.qml hardcodes AM/PM indicator after the time value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2031308</commentid>
    <comment_count>1</comment_count>
    <who name="momo">momo.cao</who>
    <bug_when>2021-05-09 18:08:08 +0000</bug_when>
    <thetext>Hello Shinjo. Do you know if there&apos;s a resource that lists locales that show AM/PM this way? I&apos;ve been looking at CLDR (http://cldr.unicode.org/translation/date-time-1/date-time-patterns) but I cannot find data about the AM/PM order.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2033419</commentid>
    <comment_count>2</comment_count>
    <who name="Shinjo Park">kde</who>
    <bug_when>2021-05-17 16:03:35 +0000</bug_when>
    <thetext>(In reply to momo from comment #1)
&gt; Hello Shinjo. Do you know if there&apos;s a resource that lists locales that show
&gt; AM/PM this way? I&apos;ve been looking at CLDR
&gt; (http://cldr.unicode.org/translation/date-time-1/date-time-patterns) but I
&gt; cannot find data about the AM/PM order.

&quot;hour minute&quot; of the CLDR Date/Time Chart [1] or &quot;hm&quot;/&quot;hms&quot; formatting of &quot;Date &amp; Time&quot; should be suffice.

[1] https://unicode-org.github.io/cldr-staging/charts/latest/verify/dates/ko.html
[2] https://st.unicode.org/cldr-apps/v#/ko/Gregorian/6cdad6946fa0fe82</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057223</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2021-08-29 21:17:33 +0000</bug_when>
    <thetext>Can confirm. When forcing or inheriting 12-hour style, we assume that the AM/PM does after the time. I wonder if we can detect this from the locale...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2402883</commentid>
    <comment_count>4</comment_count>
    <who name="pallaswept">pallaswept</who>
    <bug_when>2025-02-26 14:01:54 +0000</bug_when>
    <thetext>We also assume seconds to the right of minutes to the right of hours (LTR style)

Fix incoming</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>