Bug 395146

Summary: change time - wrong date ...
Product: [openSUSE] openSUSE 11.0 Reporter: Michael Meeks <mmeeks>
Component: GNOMEAssignee: Vincent Untz <vuntz>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P2 - High CC: casualprogrammer
Version: Beta 2   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard: gnome-update gnomeup-gnome-panel
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Bug Depends on:    
Bug Blocks: 412722    
Attachments: photo
fix

Description Michael Meeks 2008-05-28 16:52:50 UTC
I right click on my clock; hit "Adjust date/time", and I get a nice dialog (as shown in the screenshot).

Unfortunately it defaults to a different date: 22 May vs. the 27th May (ie. not today). That is acutely unhelpful ;-)
Comment 1 Michael Meeks 2008-05-28 16:53:22 UTC
Created attachment 218684 [details]
photo
Comment 2 Casual J. Programmer 2008-05-28 17:01:28 UTC
This is very likely a duplicate of Bug 384254, please check
Comment 3 Michael Meeks 2008-05-28 17:12:41 UTC
Nah ! - it's much simpler and more prosaic than that ;-)

The problem is: I set the time before: on the 22nd.

When you pop-up the dialog - I -think- it re-uses the widgets & window from before: which is set to the current date the first time it's created :-)

So - the 1st time you pop-up your "change the date" applet, it has the correct current date.

The 2nd time, it has what you selected last time (check by changing the selection with the mouse).

The fix is trivial I guess: call gtk_calendar_select_month and select_day as we pop the window up again :-)

Federico ?
Comment 4 Casual J. Programmer 2008-05-28 21:30:10 UTC
Why don't you follow Comment #74 from Bug 384254 just to make sure ? I couldn't grasp it neither on first sight..
Comment 5 Michael Meeks 2008-05-29 14:50:30 UTC
Sure ;-) I am 1000% certain it is an unrelated bug, and the fix is as I outline above.
Comment 6 Michael Meeks 2008-06-03 09:33:33 UTC
Created attachment 219739 [details]
fix
Comment 7 Michael Meeks 2008-06-03 09:34:02 UTC
Vincent - trivial, obviously correct patch to fix silly panel bug ;-)
Comment 8 Vincent Untz 2008-06-18 12:22:47 UTC
Bah, sorry for forgetting this. I committed your patch upstream.
Tagging with gnome-update so that it can go in a gnome-panel round of update.
Comment 9 Vincent Untz 2008-08-25 20:11:07 UTC
Closing the bug since the update got rejected in bug 412722 :/
(it's fixed in factory, of course)