From a03540d61ed913b78f7c02f8b695fd69eea3e217 Mon Sep 17 00:00:00 2001 From: Cara Salter Date: Sat, 15 Apr 2023 15:09:01 -0400 Subject: Finish spotify for now Change-Id: I77c7d319ddf37c7259f4de89567f9a6719f88796 --- include/142bot/db.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/142bot/db.hpp b/include/142bot/db.hpp index 0a82b84..505d6db 100644 --- a/include/142bot/db.hpp +++ b/include/142bot/db.hpp @@ -78,7 +78,7 @@ namespace pqxx static asdf::timestamp from_string( std::string_view &text ) { asdf::timestamp ts; - if( !asdf::from_iso8601_str( std::string{ text } + "00", ts ) ) + if( !asdf::from_iso8601_str( std::string{ text }, ts ) ) throw argument_error{ "Failed conversion to " + static_cast< std::string >( name() ) @@ -96,7 +96,7 @@ namespace pqxx } static char* into_buf(char* begin, char* end, asdf::timestamp const &value) { - return pqxx::internal::generic_into_buf(begin, end, value); + return pqxx::string_traits::into_buf(begin, end, asdf::to_iso8601_str(value)); } static zview to_buf(char* begin, char* end, asdf::timestamp const &value) { @@ -104,7 +104,7 @@ namespace pqxx } static std::size_t size_buffer(asdf::timestamp const &value) noexcept { - return pqxx::string_traits::size_buffer(asdf::to_iso8601_str(value)) + 1; + return pqxx::string_traits::size_buffer(asdf::to_iso8601_str(value)); } }; -- cgit v1.2.3