[haiku-bugs] Re: [Haiku] #12575: Tracker ignores 24 hour format

  • From: "pulkomandy" <trac@xxxxxxxxxxxx>
  • Date: Tue, 17 May 2016 06:34:45 -0000

#12575: Tracker ignores 24 hour format
------------------------------------+----------------------------
   Reporter:  markh                 |      Owner:  pulkomandy
       Type:  bug                   |     Status:  assigned
   Priority:  normal                |  Milestone:  R1
  Component:  Applications/Tracker  |    Version:  R1/Development
 Resolution:                        |   Keywords:
 Blocked By:                        |   Blocking:
Has a Patch:  1                     |   Platform:  All
------------------------------------+----------------------------

Comment (by pulkomandy):

 I don't remember this part of the code very well, but:
 - If fExplicitUse24HourClock is CLOCK_HOURS_UNSET, there should be no need
 to change the format, as the one from the locale will be used.
 - Using !FormatUsesAmPm(outFormat); for detecting a 24 hour clock is a bit
 dangerous (it's possible to have 12 hour clock and no AM/PM indicator). I
 would write a method similar to FormatUsesAmPm, detecting the k,K,h,H
 characters in the format instead.
 - Anyway, there should be no need to check that, because the "coerce"
 method will not make any change to the format if it already is as expected

--
Ticket URL: <https://dev.haiku-os.org/ticket/12575#comment:8>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: