[Libreoffice-commits] core.git: connectivity/source

Wastack btomi96 at gmail.com
Thu Aug 11 12:49:33 UTC 2016


 connectivity/source/drivers/firebird/ResultSet.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 70a295ea33c8a8f3f3643733388f9a37dab9f967
Author: Wastack <btomi96 at gmail.com>
Date:   Wed Jul 27 18:05:42 2016 +0200

    tdf#91324 GSoC adapt struct tm correctly for date
    
    Change-Id: Id0413d735eeeb506b6e706c5d31e7bf989ab5e41
    Reviewed-on: https://gerrit.libreoffice.org/27592
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Lionel Elie Mamane <lionel at mamane.lu>

diff --git a/connectivity/source/drivers/firebird/ResultSet.cxx b/connectivity/source/drivers/firebird/ResultSet.cxx
index f0312c5..68517a8 100644
--- a/connectivity/source/drivers/firebird/ResultSet.cxx
+++ b/connectivity/source/drivers/firebird/ResultSet.cxx
@@ -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
     {


More information about the Libreoffice-commits mailing list