summaryrefslogtreecommitdiff
path: root/lib/output
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-08-27 20:41:21 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2021-08-27 20:41:21 +0100
commite934b611775654d71dc4648cd86d01e34c51ac44 (patch)
tree2b0128eb2bdc9f74e98abf7864213f944fabcf94 /lib/output
parentHandle errors in the replication thread in tests (diff)
downloadmygrate-e934b611775654d71dc4648cd86d01e34c51ac44.tar.bz2
mygrate-e934b611775654d71dc4648cd86d01e34c51ac44.tar.xz
mygrate-e934b611775654d71dc4648cd86d01e34c51ac44.zip
Fix parse of PostgreSQL of timestamp
Diffstat (limited to 'lib/output')
-rw-r--r--lib/output/pq/pqRecordSet.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::runtime_error>(end && !*end, "Invalid timestamp string");
return DateTime {tm};
}