diff options
-rw-r--r-- | spec/src/Thermoprint/API.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/src/Thermoprint/API.hs b/spec/src/Thermoprint/API.hs index 4f9d074..b27c0b5 100644 --- a/spec/src/Thermoprint/API.hs +++ b/spec/src/Thermoprint/API.hs | |||
@@ -65,10 +65,10 @@ data PrintingError = UnknownError | |||
65 | type DraftTitle = Text | 65 | type DraftTitle = Text |
66 | 66 | ||
67 | instance FromText UTCTime where | 67 | instance FromText UTCTime where |
68 | fromText = parseTimeM True defaultTimeLocale "%s%Q" . T.unpack | 68 | fromText = parseTimeM True defaultTimeLocale "%F_%T%Q" . T.unpack |
69 | 69 | ||
70 | instance ToText UTCTime where | 70 | instance ToText UTCTime where |
71 | toText = T.pack . formatTime defaultTimeLocale "%s%Q" | 71 | toText = T.pack . formatTime defaultTimeLocale "%F_%T%Q" |
72 | 72 | ||
73 | type ThermoprintAPI = "printers" :> Get '[JSON] (Map PrinterId PrinterStatus) | 73 | type ThermoprintAPI = "printers" :> Get '[JSON] (Map PrinterId PrinterStatus) |
74 | :<|> "jobs" :> ( | 74 | :<|> "jobs" :> ( |