Index: addressbook/e-book-backend-exchange.c
===================================================================
RCS file: /cvs/gnome/evolution-exchange/addressbook/e-book-backend-exchange.c,v
retrieving revision 1.50
diff -u -p -r1.50 e-book-backend-exchange.c
--- addressbook/e-book-backend-exchange.c	6 Feb 2006 08:32:49 -0000	1.50
+++ addressbook/e-book-backend-exchange.c	7 Feb 2006 09:15:38 -0000
@@ -826,15 +826,22 @@ proppatch_date (PropMapping *prop_mappin
 		return;
 	}
 
-	memset (&then, 0, sizeof(then));
-	then.tm_year = new_dt->year - 1900;
-	then.tm_mon  = new_dt->month - 1;
-	then.tm_mday = new_dt->day;
-	then.tm_isdst = -1;
-	tt = mktime (&then);
+	if (new_dt) {
+		memset (&then, 0, sizeof(then));
+		then.tm_year = new_dt->year - 1900;
+		then.tm_mon  = new_dt->month - 1;
+		then.tm_mday = new_dt->day;
+		then.tm_isdst = -1;
+		tt = mktime (&then);
 
-	e2k_properties_set_date (props, prop_mapping->prop_name,
-				 e2k_make_timestamp (tt));
+		e2k_properties_set_date (props, prop_mapping->prop_name,
+					 e2k_make_timestamp (tt));
+	}
+	else {
+		/* remove the dates set */
+		e2k_properties_set_date (props, prop_mapping->prop_name,
+					 e2k_make_timestamp (time (NULL)));
+	}
 	e_contact_date_free (new_dt);
 }
 
