From e934b611775654d71dc4648cd86d01e34c51ac44 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Fri, 27 Aug 2021 20:41:21 +0100 Subject: Fix parse of PostgreSQL of timestamp --- lib/output/pq/pqRecordSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/output/pq/pqRecordSet.cpp b/lib/output/pq/pqRecordSet.cpp index e25c571..4d5349f 100644 --- a/lib/output/pq/pqRecordSet.cpp +++ b/lib/output/pq/pqRecordSet.cpp @@ -70,7 +70,7 @@ namespace MyGrate::Output::Pq { } case TIMESTAMPOID: { tm tm {}; - const auto end = strptime(value, "%FT%T", &tm); + const auto end = strptime(value, "%F %T", &tm); verify(end && !*end, "Invalid timestamp string"); return DateTime {tm}; } -- cgit v1.2.3