Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Format annotations using format that can be parsed | Oleg Bulatov | 2019-11-27 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | I expect an output of `ledger print` to be consumable by ledger. But on the next journal ``` 2019/11/25 * test Foo 1 AAPL {1.00 EUR} [2019/11/24] Bar ``` it prints [19-Nov-24], which it does not understand with default options. With this patch it prints [2019/11/24]. | ||||
* | Add support for '%F' date format specifier | Michael Budde | 2019-04-02 | 1 | -7/+7 |
| | | | | | | | | | '%F' is equivalent to '%Y-%m-%d'. Using the '%F' format without this change this would not give any hard errors but instead give dates with wrong years because the 'has_year' trait would not be correctly detected and thus parsed dates would get set to the current year. Fixes #1775 | ||||
* | Remove dead code | Michael Budde | 2019-04-02 | 1 | -9/+0 |
| | |||||
* | Fix possible stack overflow in date parsing routine | Michael Budde | 2019-01-26 | 1 | -1/+3 |
| | | | | | | | | | | | | | | | It is possible to create a stack overflow by giving a date that is longer than the buffer that is used during date parsing because the length of the input string is not checked. The `VERIFY` macro is only enabled when debug-mode is enabled and the `--verify-memory` argument is used. Prevent the issue by always checking the input string length and discarding dates that does not fit in the buffer as invalid. This issue has been assigned CVE-2017-12482. Fixes #1224 | ||||
* | Remove unused development code related to USE_BOOST_FACETS | Tim Landscheidt | 2019-01-17 | 1 | -81/+2 |
| | | | | | The code can be accessed by Git history and reused in a branch if necessary. | ||||
* | Remove TOK_A_YEAR token | Christoph Dittmann | 2018-06-10 | 1 | -23/+8 |
| | | | | | | | | | | | | | | | | This fixes #1626. The tokenizer eagerly classifies 4-digit integers as TOK_A_YEAR tokens. In some contexts such as "every 1000 years", this causes errors. I think the tokenizer does not have enough information available to distinguish between integers and years. After this patch, the tokenizer will always classify integers as TOK_INT tokens. The "has 4 digits" heuristic to determine if an integer is a year is moved to the place where it's actually needed (and it can be slightly more generic there, too). | ||||
* | [misc] Update year in copyright notice to 2017 | Alexis Hildebrandt | 2018-01-27 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | [misc] Update year in copyright notice to 2017 | Alexis Hildebrandt | 2017-01-05 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Fix build under Cygwin. | Ivan Vanyushkin | 2016-09-29 | 1 | -1/+1 |
| | |||||
* | Fix build under msys32; add Appveyor continuous build | Evan Mallory | 2016-09-17 | 1 | -1/+1 |
| | | | | | | | | | | | | * Appveyor is a continuous integration platform for Windows that is free for open source projects. See latest test build here: https://ci.appveyor.com/project/Evan/ledger/build/artifacts * Changed WIN32 to _WIN32 because this article http://nadeausoftware.com/articles/2012/01/c_c_tip_how_use_compiler_predefined_macros_detect_operating_system claims that it is defined by the greatest number of compilers. * Modified HAVE_ISATTY and other system defines so that system.hh compiles when cmake fails to find the relevant function. * Add missing include in test/unit/t_value.cc Almost all tests fail when you run them on msys32. I will address that in a future PR. | ||||
* | days - do not stabalize periods spacified in days | Peter Pickford | 2016-03-13 | 1 | -12/+26 |
| | | | | | | | | weeks - calculate start date for finding period using remainer 400/periodlength to reduce number of iterations (perhaps this ought to follow the same conventio as years months and quarters) add sample period command tests add add day period tests for forecasts and budgets add week period tests for forecasts and budgets - these do not change | ||||
* | [misc] Update year in copyright notice to 2016 | Alexis Hildebrandt | 2016-01-02 | 1 | -1/+1 |
| | | | | [ci skip] | ||||
* | Bump copyright notice to 2015 | Alexis Hildebrandt | 2014-12-27 | 1 | -1/+1 |
| | | | | | | The following script makes it a no-brainer: % NEXT_YEAR=2015; ag -l 'Copyright.*Wiegley' \ | xargs sed -i '' -e "s/\(Copyright.*\)-20[0-9]\{2\}/\1-${NEXT_YEAR}/" | ||||
* | Add ISO 8601 date as recognized date string | Martin Michlmayr | 2014-10-02 | 1 | -0/+1 |
| | | | | | | | | Dates specified via --begin and --end are converted to a value expression using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by ledger. Bug fix for #1072 | ||||
* | Fix period expression parsing for month to month without year | Martin Michlmayr | 2014-10-02 | 1 | -2/+1 |
| | | | | Bug fix for #1074, a regression introduced by the fix for bug #375 | ||||
* | Check whether a month is followed by a year | Martin Michlmayr | 2014-05-30 | 1 | -0/+11 |
| | | | | Bug fix for #375 | ||||
* | Bump copyright information to 2014 | Alexis Hildebrandt | 2014-02-02 | 1 | -1/+1 |
| | |||||
* | Source changes needed for Microsoft Visual C++ compatibility. | Tim Crews | 2013-06-14 | 1 | -0/+4 |
| | | | | Includes an implementation of strptime, compiled only for Win32 platform. | ||||
* | Bump copyright information to 2013 | John Wiegley | 2013-02-18 | 1 | -1/+1 |
| | |||||
* | Converted the Ledger build system to use CMake | John Wiegley | 2012-05-20 | 1 | -7/+7 |
| | |||||
* | Switch to using Boost.Format | John Wiegley | 2012-05-14 | 1 | -7/+7 |
| | |||||
* | Fixed a hidden memory corruption bug | John Wiegley | 2012-05-14 | 1 | -4/+4 |
| | |||||
* | Allow --input-date-format to specify separators | John Wiegley | 2012-03-19 | 1 | -3/+8 |
| | | | | Fixes #650 | ||||
* | Increased file copyrights to 2012 | John Wiegley | 2012-02-29 | 1 | -1/+1 |
| | |||||
* | Corrected problem with parsing of leap days | John Wiegley | 2012-02-28 | 1 | -0/+1 |
| | |||||
* | Rewrite the way interval reports are generated | John Wiegley | 2012-02-28 | 1 | -5/+9 |
| | |||||
* | Added debug code for debugging interval reports | John Wiegley | 2012-02-28 | 1 | -0/+11 |
| | |||||
* | Removed unneeded default cases | John Wiegley | 2012-02-17 | 1 | -9/+0 |
| | |||||
* | Fixes for variable shadowing (27/28) | John Wiegley | 2012-02-17 | 1 | -3/+3 |
| | |||||
* | Fixes for variable shadowing (26/28) | John Wiegley | 2012-02-17 | 1 | -2/+1 |
| | |||||
* | Cleanup whitespace | John Wiegley | 2011-08-18 | 1 | -1/+1 |
| | |||||
* | Removed unused variables | John Wiegley | 2011-08-18 | 1 | -4/+1 |
| | |||||
* | Clarified an #ifdef | John Wiegley | 2011-04-11 | 1 | -0/+3 |
| | |||||
* | Parse %m/%d/%Y %H:%M:%S as an input date/time | John Wiegley | 2010-12-04 | 1 | -2/+9 |
| | | | | This is to support reading of Timelog files. | ||||
* | Improvements to time period parsing | John Wiegley | 2010-06-21 | 1 | -8/+190 |
| | | | | | Things like "since last month" and "4 weeks ago", and "since 4 weeks ago" are now all working. | ||||
* | Added missing call to resolve_end() in find_period | John Wiegley | 2010-06-20 | 1 | -0/+2 |
| | |||||
* | --input-date-format now affects dates with times | John Wiegley | 2010-06-20 | 1 | -1/+8 |
| | |||||
* | Support period expressions "this/next/last week" | John Wiegley | 2010-06-14 | 1 | -14/+28 |
| | |||||
* | Allow period exprs "from today", "until tomorrow" | John Wiegley | 2010-06-14 | 1 | -0/+10 |
| | |||||
* | Support period expressions like "last 4 weeks" | John Wiegley | 2010-06-14 | 1 | -12/+37 |
| | |||||
* | Fix to allow time periods like "every 14 days" | John Wiegley | 2010-06-14 | 1 | -1/+1 |
| | |||||
* | Revised how Ledger handles the "current year" | John Wiegley | 2010-06-14 | 1 | -33/+22 |
| | | | | | Now when the Y directive sets the current year for a region, it affects everything, as if the clock really were set back to that year. | ||||
* | Added a missing break statement | John Wiegley | 2010-06-13 | 1 | -0/+1 |
| | | | | This broke the meaning of -p "this month". | ||||
* | Option --input-date-format adds to candidate list | John Wiegley | 2010-06-13 | 1 | -2/+2 |
| | |||||
* | Untabified all source files | John Wiegley | 2010-06-11 | 1 | -442/+442 |
| | |||||
* | Allow opt -NDEBUG build to complete without warnings | John Wiegley | 2010-06-04 | 1 | -0/+2 |
| | |||||
* | Fixed two memory reference errors | John Wiegley | 2010-06-02 | 1 | -7/+6 |
| | |||||
* | If FMT_CUSTOM is given, and no format, use FMT_PRINTED | John Wiegley | 2010-05-22 | 1 | -2/+2 |
| | |||||
* | Report an error for incorrect dates like 2010/04/32 | John Wiegley | 2010-05-22 | 1 | -20/+34 |
| | | | | Fixes EF57C685-2C18-49A1-9A8C-FB3BE6F99C41 | ||||
* | Updated copyrights to 2003-2010 | John Wiegley | 2010-03-05 | 1 | -1/+1 |
| |