From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5)
Description of problem:
The clock application displays a small clock in the task bar with the
date and time.
I'd like to be able to have a preference setting to specify a string
to use as the format string used by strftime.
Also, I'd like a new substitution variable that will put in the
username of the logged on user.
The reason for this is that I log onto many different user ids on the
system and it would be a nice little feature to display the user id in
a consistent place.
A string I might use:
[$u] %a %d %b, %H:%M %p
The $ variables would be resolved before giving the string to strftime
which will handle all the % variables. In my example $u would be
substituted for the logged on user id/name.
It would be nice to be able to set this globally, but I suppose if I
had to set it once for each user, that's acceptable.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Reproducabilty doesn;t really apply... this is a suggestion for a
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.
Changed from FC3 to FC5, changed software version to Clock 2.14.2
Suggestions still apply,
Fedora Core 5 is no longer maintained. Is this bug still present in Fedora 8?
If it is still present please update the version field and file this bug in
upstream GNOME bugzilla http://bugzilla.gnome.org/
We no longer support Fedora Core 5 and I am currently trying to get my open bug
count down to a more manageable state. I'm going to close this bug as WONTFIX.
If this issue is still a concern for you, would you mind trying to reproduce on
a supported version of Fedora and reopening?
(this is a mass message)
Sorry for not getting back sooner...
Yes, still applies to Fedora 8 - I changed the version number above.
It is rather low priority though. But I'd like to leave it open... might be a
good exercise for somebody new to Fedora contributing...
I'm sure I could do it... I just don't know the process of getting the source
code etc. (hint: if you can tell me that, I can probably send you a diff file or
something. Would that help?)
So you can get the current username on your panel by adding the "User Switcher"
I don't think exposing format strings to the user in the preferences dialog
would be very user friendly. It might make sense to expose it in GConf.
Either way, this would probably be better filed upstream so it can get more eyes
Would you mind doing that? If you'd rather me file it upstream, I'd be happy to.
If you can tell me where "upstream" is... I can do it.
But probably in the time it takes to explain it to me, you could have it done. :-)
I agree with you about exposing format strings... I'd probably want a "build
format string" function where I could pick/choose the format I want, and let the
format string get built behind the scenes.
Sort of like in MS Excel when formating a cell as a date... it let's you select
some predefined things, or "custom" and then there are "tokens" that represent
the actual value you want. i.e d is day of month with no leading zero, ddd if
three letter day, dddd is full day spelled out in full, etc.
Upstream is here:
OK... I'll do that. (Probably tonight)
Then I'll cross reference it here, and close this.
Filed upstream: http://bugzilla.gnome.org/show_bug.cgi?id=523502