on master help sign in
Correct encoder for DiffTime
commit7a46e8ef1a44257f38bb5efb4308b2898cf5ed05 authorOllie Charles <ollie@ocharles.org.uk> dateFri 26 Mar 2021, 13:58 (6 years ago) parentb85d5e4
1 file changed+1−1
src/Rel8/Type.hs+1−1
src/Rel8/Type.hs+1−1
@@ -225,7 +225,7 @@ instance DBType DiffTime where
225225 typeInformation = TypeInformation
226226 { encode =
227227 Opaleye.ConstExpr . Opaleye.OtherLit .
228− formatTime defaultTimeLocale "'%-6Es'"
228+ formatTime defaultTimeLocale "'%0Es'"
229229 , decode = Hasql.interval
230230 , typeName = "interval"
231231 , out = id