(fix) improvement for #3518

pull/207/head
Ludovic Marcotte 2016-05-06 08:01:54 -04:00
parent 7bd7272bd1
commit 8aa452539a
1 changed files with 2 additions and 5 deletions

View File

@ -235,13 +235,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]];
}