(fix) improvement for #3518

This commit is contained in:
Ludovic Marcotte
2016-05-06 08:01:54 -04:00
parent 4ac2811caf
commit 2fb2485b12
+2 -5
View File
@@ -239,13 +239,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Other, less important fields
if ((o = [self birthday]))
{
NSTimeZone *userTimeZone;
userTimeZone = [[[context activeUser] userDefaults] timeZone];
[s appendFormat: @"<Birthday xmlns=\"Contacts:\">%@</Birthday>",
[[o dateByAddingYears: 0 months: 0 days: 0
hours: 0 minutes: 0
seconds: ([userTimeZone secondsFromGMTForDate: o])*-1]
hours: -12 minutes: 0
seconds: 0]
activeSyncRepresentationInContext: context]];
}