Fix a few warnings
This commit is contained in:
parent
8a9cbce1cc
commit
1a1bbd0838
3 changed files with 4 additions and 3 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#include <gmock/gmock-matchers.h>
|
||||
#include "Pgsql_Value.h"
|
||||
#include "PrintTo_Qt.h"
|
||||
#include <QTimeZone>
|
||||
#include <iterator>
|
||||
#include <set>
|
||||
#include <vector>
|
||||
|
|
@ -29,7 +30,7 @@ TEST(Pgsql_Value, test_QDateTime_2)
|
|||
Pgsql::Value v("2017-12-01 09:38:17.339817+02", timestamptz_oid);
|
||||
QDateTime dt = (QDateTime)v;
|
||||
QDateTime exp(QDate(2017, 12, 1), QTime(9, 38, 17, 340),
|
||||
Qt::OffsetFromUTC, 2*3600);
|
||||
QTimeZone::fromSecondsAheadOfUtc(2 * 3600));
|
||||
ASSERT_EQ(dt, exp);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue