Changeset 117

Show
Ignore:
Timestamp:
04/06/08 18:42:34 (9 months ago)
Author:
zork
Message:

date with different DST was changed by one hour after retrieval (ODBC)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/debea_1_2/dba/dba/odbc.cpp

    r95 r117  
    935935  time_t now = time(NULL); 
    936936  struct tm val = *localtime(&now); 
     937  //retrieved time can have different dst setting 
     938  //that returned by mktime. 
     939  val.tm_isdst = -1; 
    937940  val.tm_year = mTimestampValue.year - 1900; 
    938941  val.tm_mon = mTimestampValue.month - 1; 
  • branches/debea_1_2/dba/test/main.cpp

    r102 r117  
    152152  //runner.addTest(new CppUnit::TestCaller<OdbcPluginTestCase>("debug_test",&OdbcPluginTestCase::dbConnection)); 
    153153  //runner.addTest(new CppUnit::TestCaller<PostgresSQLArchiveTestCase>("debug_test",&PostgresSQLArchiveTestCase::sqlError)); 
    154   //runner.addTest(new CppUnit::TestCaller<OdbcDbTestCase>("debug_test",&OdbcDbTestCase::bigstrdata_load)); 
     154  //runner.addTest(new CppUnit::TestCaller<OdbcDbTestCase>("debug_test",&OdbcDbTestCase::conv_date_to_date)); 
    155155  //runner.addTest(new CppUnit::TestCaller<PostgresDbTestCase>("debug_test",&PostgresDbTestCase::conv_str_to_double_pl)); 
    156156  //runner.addTest(new CppUnit::TestCaller<ODBCSQLArchiveTestCase>("debug_test",&ODBCSQLArchiveTestCase::agregationTest));