-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid date format when reading ledger file #97
Comments
@etienne-monier I've never tried this, but you could try setting the environment variable LEDGER_DATE_FORMAT="%d/%m/%Y'. |
Hi, I had forgotten to tell you I've got a
It seems this is read when calling |
Yes, that's right, |
Ok for the file. The ledger Similarly, @kevinjfoley 's implementation only permit to format the output of ledger-autosync. In his pull request, you told that was rare to use different date formatting, but that is not in France :D I'll have a look at that, but I think for the moment to use a small script to toogle the file date format. I've got a PhD thesis to write :s |
:) I see no reason why Kevin's implementation can't be extended to pass |
I think it will require a bit of work since it will have to pass the parameter through to a completely different place (multiple place actually, one for each However I don't think it should be too difficult, I'll try to open a PR to address when I have some time this week. |
I can take a look at it, I just wanted to check in to make sure that it made sense to you! |
No problem, I don't mind looking either! But yeah I think the two changes will be largely unrelated other than sharing a parameter (though I only have a cursory knowledge of the code base).
This is probably true 99.99% of the time but I wouldn't be surprised if someone has a use case where it isn't true. Might be worth it to have |
Hi,
I use dd/mm/yyyy format in my ledger file. I saw this pull which introduced date formatting for output string.
My problem occurs before and the output looks like ...
I installed dev source to have output date format handling.
I use ̀--input-date-format %d/%m/%Y` option in ledger, but this does not exists for ledger-autosync.
Do you have an idea for me ? Is there something I misunderstood ?
The text was updated successfully, but these errors were encountered: