[evolution-mapi/gnome-2-30] Bug #622923 - Birthday/Anniversary shifted by one day
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-mapi/gnome-2-30] Bug #622923 - Birthday/Anniversary shifted by one day
- Date: Mon, 28 Jun 2010 11:58:19 +0000 (UTC)
commit 5abf546c3ca6638f5ef7972c3fc39f585f19148e
Author: Charles Bovy <charles bovy gmail com>
Date: Mon Jun 28 13:57:49 2010 +0200
Bug #622923 - Birthday/Anniversary shifted by one day
src/addressbook/e-book-backend-mapi.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/addressbook/e-book-backend-mapi.c b/src/addressbook/e-book-backend-mapi.c
index abad9a6..e045133 100644
--- a/src/addressbook/e-book-backend-mapi.c
+++ b/src/addressbook/e-book-backend-mapi.c
@@ -570,7 +570,7 @@ mapi_book_build_props (struct SPropValue ** value, struct SPropTagArray * SPropT
NTTIME nt;
struct FILETIME t;
- tmtime.tm_mday = date->day - 1;
+ tmtime.tm_mday = date->day;
tmtime.tm_mon = date->month - 1;
tmtime.tm_year = date->year - 1900;
@@ -589,7 +589,7 @@ mapi_book_build_props (struct SPropValue ** value, struct SPropTagArray * SPropT
NTTIME nt;
struct FILETIME t;
- tmtime.tm_mday = date->day - 1;
+ tmtime.tm_mday = date->day;
tmtime.tm_mon = date->month - 1;
tmtime.tm_year = date->year - 1900;
@@ -1142,7 +1142,7 @@ emapidump_contact(struct mapi_SPropValue_array *properties)
time = nt_time_to_unix (nt);
tmtime = gmtime (&time);
//FIXME: Move to new libmapi api to get string dates.
- date.day = tmtime->tm_mday + 1;
+ date.day = tmtime->tm_mday;
date.month = tmtime->tm_mon + 1;
date.year = tmtime->tm_year + 1900;
e_contact_set (contact, mappings[i].field_id, &date);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]