After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 681325 - clock shows wrong month-page when opening calendar
clock shows wrong month-page when opening calendar
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: clock
3.5.x
Other Linux
: Normal normal
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 687985 688022 695896 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-08-06 18:04 UTC by Hanmac
Modified: 2013-05-20 14:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
after clicking on the clock (43.54 KB, image/png)
2012-08-07 07:08 UTC, Hanmac
  Details
Set correct month on startup (1.05 KB, patch)
2012-10-11 14:36 UTC, Marek Kašík
committed Details | Review

Description Hanmac 2012-08-06 18:04:48 UTC
when i click on the calendar (currently its 06.08.2012) then the month-page shows "September". 

i tried to reinstall gnome-panel and removing the config but it does not help
Comment 1 André Klapper 2012-08-07 06:04:33 UTC
Which gnome-panel version is this about?
How did you try to "remove the config"?
Which distribution is this about?
Could you also attach a screenshot here?
Comment 2 Hanmac 2012-08-07 07:07:52 UTC
gnome-panel version: 1:3.5.4-0ubuntu2
my system:
Ubuntu Version 12.10 (quantal) (64-Bit)
Kernel Linux 3.5.0-8-lowlatency
GNOME 3.5.4 (logged in with gnome-classic)


i tryed to remove the config with removing some of the files in ~/.config but it does not help
Comment 3 Hanmac 2012-08-07 07:08:47 UTC
Created attachment 220512 [details]
after clicking on the clock
Comment 4 Marek Kašík 2012-10-11 14:36:07 UTC
Created attachment 226265 [details] [review]
Set correct month on startup

Hi,

it seems to me that this problem was introduced by this commit: http://git.gnome.org/browse/gnome-panel/commit/?id=cd1a0db671b6eb57efcf2770287882e625ae1753.

Function gtk_calendar_select_month() expects month to be a number from interval 0 - 11 but g_date_time_get_day_of_month() returns number from interval 1 - 12.

Attached patch fixes this for me.

Regards

Marek
Comment 5 Vincent Untz 2012-10-11 14:50:19 UTC
Comment on attachment 226265 [details] [review]
Set correct month on startup

Thanks, please commit with two small changes: prefix the first line in the commit log with "clock: " and put the full bug URL instead of (#681325).
Comment 6 Marek Kašík 2012-10-12 06:57:01 UTC
Comment on attachment 226265 [details] [review]
Set correct month on startup

(In reply to comment #5)
> (From update of attachment 226265 [details] [review])
> Thanks, please commit with two small changes: prefix the first line in the
> commit log with "clock: " and put the full bug URL instead of (#681325).

Hi,

I've committed the patch with suggested changes (I was a little busy yesterday :) ).

Regards

Marek
Comment 7 Vincent Untz 2012-11-12 09:22:56 UTC
*** Bug 687985 has been marked as a duplicate of this bug. ***
Comment 8 Vincent Untz 2012-11-12 09:23:00 UTC
*** Bug 688022 has been marked as a duplicate of this bug. ***
Comment 9 Jeremy Bicha 2013-05-20 14:22:53 UTC
*** Bug 695896 has been marked as a duplicate of this bug. ***