summaryrefslogtreecommitdiff
path: root/lib/output/pq
diff options
context:
space:
mode:
Diffstat (limited to 'lib/output/pq')
-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};
}