Tag: cws_src680_macaddressbook01 User: cremlae Date: 2007-07-20 23:00:59+0000 Modified: dba/connectivity/source/drivers/macab/macabutilities.hxx
Log: #79766 Fix dates in Mac OS X Address Book integration to be correct File Changes: Directory: /dba/connectivity/source/drivers/macab/ ================================================== File [changed]: macabutilities.hxx Url: http://dba.openoffice.org/source/browse/dba/connectivity/source/drivers/macab/macabutilities.hxx?r1=1.1.2.2&r2=1.1.2.3 Delta lines: +5 -5 ------------------- --- macabutilities.hxx 2007-07-13 18:17:42+0000 1.1.2.2 +++ macabutilities.hxx 2007-07-20 23:00:57+0000 1.1.2.3 @@ -4,9 +4,9 @@ * * $RCSfile: macabutilities.hxx,v $ * - * $Revision: 1.1.2.2 $ + * $Revision: 1.1.2.3 $ * - * last change: $Author: cremlae $ $Date: 2007/07/13 18:17:42 $ + * last change: $Author: cremlae $ $Date: 2007/07/20 23:00:57 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -106,9 +106,9 @@ com::sun::star::util::DateTime nRet; double timeSince2001 = CFDateGetAbsoluteTime(_cfDate); time_t unixtime = timeSince2001+kCFAbsoluteTimeIntervalSince1970; - struct tm *ptm = gmtime(&unixtime); - nRet.Year = ptm->tm_year; - nRet.Month = ptm->tm_mon; + struct tm *ptm = localtime(&unixtime); + nRet.Year = ptm->tm_year+1900; + nRet.Month = ptm->tm_mon+1; nRet.Day = ptm->tm_mday; nRet.Hours = ptm->tm_hour; nRet.Minutes = ptm->tm_min; --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
