diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-27 20:41:21 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2021-08-27 20:41:21 +0100 |
commit | e934b611775654d71dc4648cd86d01e34c51ac44 (patch) | |
tree | 2b0128eb2bdc9f74e98abf7864213f944fabcf94 /lib/output | |
parent | Handle errors in the replication thread in tests (diff) | |
download | mygrate-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.cpp | 2 |
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}; } |