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 633185 - Can't handle Birthdays before 01/01/1970
Can't handle Birthdays before 01/01/1970
Status: RESOLVED FIXED
Product: evolution-mapi
Classification: Applications
Component: Contacts (Addressbook)
0.32.x
Other Linux
: Normal normal
: ---
Assigned To: Milan Crha
evolution-mapi-maint
: 615037 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2010-10-26 13:39 UTC by Charles Bovy
Modified: 2011-03-09 12:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
ema patch (13.60 KB, patch)
2010-11-02 16:58 UTC, Milan Crha
committed Details | Review

Description Charles Bovy 2010-10-26 13:39:33 UTC
Evo 2.32.0
Evo-MAPI 0.32.0

Evo-MAPI can't handle birthdays before 01/01/1970. The Contact-Editor changes date back to 01/01/1970 if you want to enter date before 1970.
Comment 1 Milan Crha 2010-11-02 16:58:40 UTC
Created attachment 173701 [details] [review]
ema patch

for evolution-mapi;

Not as that much evolution-mapi issue, rather samba4's, because they clamp time_t to some range when converting from exchange's FILETIME structure. This patch workarounds the issue on the ema side. I do not know why exactly, but when writing times to birthday/anniversary there were shifted by one day for me (when seeing in Outlook). I think I miss here something obvious about mktime, like it's using system timezone or something, but I cannot find it. I'm adding one day to the actual value right now.
Comment 2 Milan Crha 2010-11-02 17:02:13 UTC
I entered bug to samba bugzilla:
https://bugzilla.samba.org/show_bug.cgi?id=7771
Comment 3 Milan Crha 2010-11-02 17:05:01 UTC
Created commit ef6caf3 in ema master (2.91.2+)
Created commit dd154a9 in ema gnome-2-32 (0.32.1+)
Comment 4 Charles Bovy 2010-11-02 21:25:32 UTC
Thanks. Works!
Comment 5 Milan Crha 2011-03-09 12:46:08 UTC
*** Bug 615037 has been marked as a duplicate of this bug. ***