GNOME Bugzilla – Bug 317891
The clock applet doesn't have the option to show the year
Last modified: 2020-11-07 12:15:02 UTC
Apparently important according to our local bug tracker ;)
admittedly you can see the year from the pop up calendar.
Created attachment 53339 [details] [review] suggested patch for bug 317891
Hello, This is my first patch for anything todo with gnome (so apologies if it's crap), i spotted this simple bug via gnome love and thought i would have a go. i couldn't find any doc's about edting schemas, so i only edited clock.schemas.in, sorry if i did this the wrong. - Daniel
(Daniel: you should add yourself to the cc list ;-). I did it) Thanks for the patch. It looks okay. Now, the real question is: do we really need this? I agree that adding the year to the tooltip can make sense, but I'm not sure adding it in the "main label" makes a lot of sense. And as Glynn points out, you can see it in the calendar. Glynn: how old was this bug in sun's bug tracker?
Actually not that old - March 2005. And as far as I know when the bug was logged we already had the calendar feature in the clock applet.
Created attachment 53381 [details] [review] Same patch as above but only effects the tooltip Heres patch 1 of 2 i just made, This one only makes the 'year' option effect the tooltip of the clock, the second (on it's way) will effect both the tooltip and the main label, this is a feature missing from the first patch, as i did not take into consideration the tooltip. I'm not sure if it's really needed to have the year in the clock, but it can't hurt to give the user the option. IMO. I would probably make it turned off by default. Also, currently the year is displayed in it's short form '05', would it be better in it's long form '2005'? probably for the main label this would take up to much room, but on the tooltip it should fit fine.
Created attachment 53382 [details] [review] Same patch, year option effects both the main label and tooltip Patch 2 of 2 Same patch as before but this time the year option effects both the main label and tooltip.
Daniel - really good to see your contributions, so thank you for them regardless of whether this feature actually makes it into the panel sources.
I'm not sure if american english uses 05 or 2005. If you need 2005, I think you have to use %Y. > I'm not sure if it's really needed to have the year in the clock, but it > can't hurt to give the user the option. Well, I agree that we can add the option in Gconf. But I'm not sure adding it to the UI is good. Anyway, the patch looks okay and I'll look at it for 2.14. Thanks a lot. You're of course welcome to make patches for other gnome-love bugs :-)
A high number of highly technical preferences is confusing to the user, sure. But Given how limited the number of options is for the clock applet, and how every body would understand what "show year" means, It is not going to be that confusing. I don't think it belongs in Gconf. Showing the year is something the people who are far from being able to understand what Gconf is might still want.
I tend to agree with comment #10. It is not like the configuration dialog for the clock applet is cluttered with options, and I also don't think users would scream at the mere sight of a "Show year" option =) Vincent?
/me fails to see what's the use of putting the year in the UI...
*** Bug 578491 has been marked as a duplicate of this bug. ***
there is/exists an option in gconf-editor or maybe a trick (please exclude idea to apply attached path) to show current year in clock applet? because this requirement is still present for some users in latest release included in Ubuntu Maverick (2.30.x), Thanks.
My reason I want the option to show year, on the screen, all the time: https://bugs.launchpad.net/ubuntu/+source/gnome-panel/+bug/465689
Now it has been almost 2 years, since my previous comment (comment 15), without any progress. Can someone make this happen? This affects several projects: https://bugs.launchpad.net/bugs/465689 Ubuntu 12.04 was released this morning: http://www.reddit.com/r/linux/comments/stfus/ubuntu_1204_released_now_available_for_download/ And, there is still no option to "show year" on the clock.
Here's the way I like my clock to look: Monday | 10-15-2012 | 11:07AM In order to do this, I must run the following command in the terminal: gsettings set com.canonical.indicator.datetime time-format "'custom'" ; gsettings set com.canonical.indicator.datetime custom-time-format "'%A | %m-%d-%Y | %l:%M%p'" This should be achievable in the GUI configuration settings; at least to the degree that you can "show year".
Review of attachment 53382 [details] [review]: This patch only works with gconf. It also no longer applies to the source tree as too much code has already changed.
Review of attachment 53381 [details] [review]: This patch only works with gconf. It also no longer applies to the source tree as too much code has already changed.
Assigning this to me.
In GNOME 3, I was able to achieve this with an extension: https://askubuntu.com/a/1022628/256054 However, I certainly wish the GUI offered these advance settings.
bugzilla.gnome.org is being replaced by gitlab.gnome.org. We are closing all old feature requests in Bugzilla which have not seen updates for many years. If you still use gnome-panel and if you are still requesting this feature in a currently supported version of GNOME (currently that would be 3.38), then please feel free to report it at https://gitlab.gnome.org/GNOME/gnome-panel/-/issues/ Thank you for reporting this issue and we are sorry it could not be implemented.