allow (and ignore) a time in price records
This commit is contained in:
parent
b0b3d70f9d
commit
042a2ad45e
@ -289,7 +289,7 @@ ledgerHistoricalPrice :: GenParser Char LedgerFileCtx HistoricalPrice
|
||||
ledgerHistoricalPrice = do
|
||||
char 'P' <?> "historical price"
|
||||
many spacenonewline
|
||||
date <- ledgerdate
|
||||
date <- try (do {LocalTime d _ <- ledgerdatetime; return d}) <|> ledgerdate -- a time is ignored
|
||||
many1 spacenonewline
|
||||
symbol <- commoditysymbol
|
||||
many spacenonewline
|
||||
|
||||
Loading…
Reference in New Issue
Block a user