Results 1 to 10 of 10

Thread: Custom date/time format for clock applet

  1. #1
    Join Date
    Oct 2006
    Location
    Vancouver, BC Canada
    Beans
    Hidden!
    Distro
    Ubuntu 11.04 Natty Narwhal

    Custom date/time format for clock applet

    Within 7.04 (Feisty Fawn) I was able to set a custom format for my clock applet using gconf-editor. Within current release (8.04; Hardy Heron) the value for the key (/schemas/apps/clock_applet/prefs/custom_format) is a schema that cannot be modfied from within the editor.

    Can anyone help me change the format; even if not from within the gconf-editor, any way to set a specific format for the clock applet would be appreciated.

  2. #2
    Join Date
    Jun 2007
    Beans
    98
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Custom date/time format for clock applet

    That's because you're not supposed to edit the schemas.

    The key you're looking for is /apps/panel/applets/applet_?/prefs/custom_format

    Don't forget to change /apps/panel/applets/applet_?/prefs/format to custom.

  3. #3
    Join Date
    Apr 2007
    Location
    Lelystad, Netherlands
    Beans
    104

    Re: Custom date/time format for clock applet

    Thanks! Didn't know this was possible.

    Some more info for those interested:

    • time format parameters: http://php.net/strftime
    • I found the custom_format and format keys in /apps/panel/applets/clock_screen0/prefs
    • example: wk.%V | %a %d-%b-%Y %H:%M -- will display time as wk.22 | Sun 01-Jun-2008 12:18

  4. #4
    Join Date
    Jul 2006
    Beans
    353

    Re: Custom date/time format for clock applet

    Thanks for the thread. I've wanted to change the panel clock format but didn't know this could be done.

    I also wanted to change the date format in nautilus. The configuration editor does have a date_format setting, but it only accepts three specific options. Anyone know how to change this?

  5. #5
    Join Date
    Apr 2007
    Beans
    4

    Re: Custom date/time format for clock applet

    Hi, I followed the instructions in this thread and they worked for me. The date format is now "Sunday 2008-12-21 09:15" in the applet on the top right corner of the esktop
    but when I cright click and select "copy Date" i still get
    "Sunday, December 21 2008"

    Where can I change this?

  6. #6
    Join Date
    Jan 2010
    Beans
    93
    Distro
    Ubuntu

    Re: Custom date/time format for clock applet

    Quote Originally Posted by CameO73 View Post
    %a %d-%b-%Y %H:%M[/LIST]
    thanks it's work for me in ubuntu natty

  7. #7
    Join Date
    Oct 2006
    Beans
    53

    Re: Custom date/time format for clock applet

    it's important to note that you must run gconf-editor without sudo, otherwise the desired values above will not appear.

  8. #8
    Join Date
    Jan 2006
    Beans
    325

    Re: Custom date/time format for clock applet

    Quote Originally Posted by bjorn_johansson View Post
    Hi, I followed the instructions in this thread and they worked for me. The date format is now "Sunday 2008-12-21 09:15" in the applet on the top right corner of the esktop
    but when I cright click and select "copy Date" i still get
    "Sunday, December 21 2008"

    Where can I change this?
    I wonder if you managed to find a way to copy the date as it is displayed, rather than some other format. The current behaviour seems an aweful lot like a bug to me...

  9. #9
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Custom date/time format for clock applet

    Quote Originally Posted by davidmaxwaterman View Post
    I wonder if you managed to find a way to copy the date as it is displayed, rather than some other format. The current behaviour seems an awful lot like a bug to me...
    Display formats are just that, underlying formats are most likely set in the LOCALE definitions for the system.

    A "Copy" is probably the underlying data which is then displayed using the LOCALE defined format.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  10. #10
    Join Date
    Jan 2006
    Beans
    325

    Re: Custom date/time format for clock applet

    Quote Originally Posted by dcstar View Post
    Display formats are just that, underlying formats are most likely set in the LOCALE definitions for the system.

    A "Copy" is probably the underlying data which is then displayed using the LOCALE defined format.
    i agree. it is very likely that it makes sense technically, but it almost certainly is not what the user wants.

Tags for this Thread

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
  •