The birthdays are shown at wrong dates for jabber profiles

Bug #1137569 reported by Other
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
[Moved] Pidgin Birthday Reminder
Won't Fix
Undecided
kgraefe

Bug Description

I have contact who's birthday information in the profile is set to Sep 3, 1977. And it's shown in Birthday Reminder, that he has a birthday today, on 1st of March. I think it's a problem of parsing the profile information from jabber. Becuase the right notifications are made when the birth date is in format of YYYY-MM-DD.
So I wonder why Sep 3, 1977 is thought to be 1st March. And if there's conversion problems, it would be better for Birthday Reminder not to show any notification for such contacts.

Doug Lomax (dlomax11)
description: updated
Revision history for this message
kgraefe (konradgraefe) wrote :

That is not an error in the plugin but in GLib.

The plugin uses g_date_set_parse() [1] to convert the date and checks the result with g_date_valid() [2] as it's claimed in the documentation.

Since GLib states that the date was converted successfully there's nothing I can do about it. Sorry.

[1] http://developer.gnome.org/glib/2.29/glib-Date-and-Time-Functions.html#g-date-set-parse
[2] http://developer.gnome.org/glib/2.29/glib-Date-and-Time-Functions.html#g-date-valid

Changed in pidgin-birthday-reminder:
assignee: nobody → kgraefe (konradgraefe)
status: New → Won't Fix
Revision history for this message
kgraefe (konradgraefe) wrote :

If I remember correctly the problem with XMPP was that the date format is not defined so basically everyone may use another date format... But it's been a while since I dealt with this so don't pin me down to this (and report if I'm wrong).

Plus g_date_set_parse() relies on your locale so results can differ from PC to PC.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.