tdf#91324 GSoC adapt struct tm correctly for date

Change-Id: Id0413d735eeeb506b6e706c5d31e7bf989ab5e41
Reviewed-on: https://gerrit.libreoffice.org/27592
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu>
This commit is contained in:
Wastack
2016-07-27 18:05:42 +02:00
committed by Lionel Elie Mamane
parent 2b4f9d0b2b
commit 70a295ea33

View File

@@ -442,7 +442,7 @@ Date OResultSet::retrieveValue(const sal_Int32 nColumnIndex, const ISC_SHORT /*n
struct tm aCTime;
isc_decode_sql_date(&aISCDate, &aCTime);
return Date(aCTime.tm_mday, aCTime.tm_mon, aCTime.tm_year);
return Date(aCTime.tm_mday, aCTime.tm_mon + 1, aCTime.tm_year + 1900);
}
else
{