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
|
ledgerHistoricalPrice = do
|
||||||
char 'P' <?> "historical price"
|
char 'P' <?> "historical price"
|
||||||
many spacenonewline
|
many spacenonewline
|
||||||
date <- ledgerdate
|
date <- try (do {LocalTime d _ <- ledgerdatetime; return d}) <|> ledgerdate -- a time is ignored
|
||||||
many1 spacenonewline
|
many1 spacenonewline
|
||||||
symbol <- commoditysymbol
|
symbol <- commoditysymbol
|
||||||
many spacenonewline
|
many spacenonewline
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user