Results 1 to 6 of 6

Thread: Support am/pm time format!

Hybrid View

  1. #1
    Join Date
    Aug 2006
    Beans
    23

    Support am/pm time format!

    Hi guys.

    Currently in ubuntu there is no definition for am/pm for irish english. You can't put the clock format in 12 hour time. You can see this from the command line with the command: "date '+%r'" it should give you something like "06:52:03 PM" but it will lack the AM/PM.

    I've created a patch to fix this. It works fine for me locally. I'll put up a package for this soon.

    In the mean time you can use ubuntu's new brainstorm to promote this idea. Click on the image below and click on the green arrow to show that approve of it. The people who vote for this, the more likely it is that this will make it into offical ubuntu.



  2. #2
    Join Date
    Aug 2006
    Beans
    23

    Re: Support am/pm time format!

    I've created a custom package that has the patch applied. It's in my PPA (Personal Package Archive).

    To fix am/pm for the irish locale, you'll need to add my PPA to your apt sources list. Download this file http://technomancy.org/ubuntu/rorymcc-ppa.list into /etc/apt/sources.list.d/,

    eg use the following command
    Code:
    sudo wget -O /etc/apt/source.list.d/rorymcc-ppa.list http://technomancy.org/ubuntu/rorymcc-ppa.list
    Then just update your software and you should have the proper time format available. To check from the command line, enter
    Code:
    LANG=en_IE.UTF-8 date '+%r'
    , it'll give the time. If it has an AM or PM, it has worked.

    This also enables the 12 hour clock on the clock applet.

  3. #3
    Join Date
    Dec 2007
    Location
    ~
    Beans
    372
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Support am/pm time format!

    The IRC meeting was fun. See you at the next one.

  4. #4
    Join Date
    Dec 2007
    Location
    ~
    Beans
    372
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Support am/pm time format!

    Got the am/pm issue solved, thanks to Ebel. Working properly now.

  5. #5
    Join Date
    Aug 2006
    Beans
    23

    Re: Support am/pm time format!

    Hi guys, just an update, this has been fixed for hardy!

    Thanks to the awesome Martin Pitt for accepting my patch and applying it to langpack-locales 2.7.9-1. This should appear in Hardy.

  6. #6
    Join Date
    Jun 2007
    Beans
    18

    Re: Support am/pm time format!

    Well done ebel getting that fixed. Top job man.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •