aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCara Salter <cara@devcara.com>2023-04-15 15:09:01 -0400
committerCara Salter <cara@devcara.com>2023-04-15 15:09:01 -0400
commita03540d61ed913b78f7c02f8b695fd69eea3e217 (patch)
tree7029841cee6b649b5ca192cd549b316dacfa24a9 /include
parentac4a926685c754f4af5adb20edf6eb23e2a0f18a (diff)
download142bot-spotify.tar.gz
142bot-spotify.zip
Finish spotifyspotify
for now Change-Id: I77c7d319ddf37c7259f4de89567f9a6719f88796
Diffstat (limited to 'include')
-rw-r--r--include/142bot/db.hpp6
1 files changed, 3 insertions, 3 deletions
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<std::string>::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<std::string>::size_buffer(asdf::to_iso8601_str(value)) + 1;
+ return pqxx::string_traits<std::string>::size_buffer(asdf::to_iso8601_str(value));
}
};