[wp-hackers] Changing the clock format in Write > Post

Daniel Torreblanca regulatethis at gmail.com
Sun May 4 18:22:59 GMT 2008


On Sun, May 4, 2008 at 1:51 PM, Alexander Beutl <xel at netgra.de> wrote:
>  somewhat like
>
>  if( $user_setting == '12h' || ($user_setting == 'use_default' &&
>  $default_setting == '12h')) {
>   // 12h code
>  } else {
>   // 24h code
>  }
>
>  don't know if you want an additional OR condition with 2 AND-combined
>  conditions complicated - choose yourselfe.
>
>  Per User setting would be an selection list with
>  -- use blog default
>  -- 24h format
>  -- 12h format
>
>  Global Setting would only need a checkbox with 'use 12h time format' or a
>  radio button group with both 24h and 12h.
>
>
>  I'd also point out that even though some of us
>  > find it easy to read/set a 24-hour clock, pretty much EVERYONE knows
>  > how to read/set a 12-hour clock.
>
>
>  For most people normally handling 24h format it will be no problem to say 15
>  = 3 BUT they will not have any idea what "am" and "pm" means. I learned it
>  in english lessons - but not everyone had english at school. And since there
>  are no abbr. for this in those languages there is no way to tell them (and
>  you can not use any self explaining stuff since there is no room for it)

Good points. I'll try this modification out tonight :)


More information about the wp-hackers mailing list