diff options
author | John Wiegley <johnw@newartisans.com> | 2009-10-11 05:19:01 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-10-11 05:19:01 -0400 |
commit | f161aea8ce96c20f888cd65a78e178e5f5552dc2 (patch) | |
tree | b8f9279c611fe08f1b10bb885144f7c275c7561d /src/item.cc | |
parent | 1a8e835bfe2cb18cd10691d7a4ab0fc478c4aced (diff) | |
download | fork-ledger-f161aea8ce96c20f888cd65a78e178e5f5552dc2.tar.gz fork-ledger-f161aea8ce96c20f888cd65a78e178e5f5552dc2.tar.bz2 fork-ledger-f161aea8ce96c20f888cd65a78e178e5f5552dc2.zip |
Removed reliance on strptime/strftime
The code now uses Boost's input and output facets for times and dates.
This ensures completely consistency regarding timezones and times, and
fixes the regression test that was broken while I was away coding in
London (where it was GMT-0 and I didn't notice the difference between
local and GMT).
Diffstat (limited to 'src/item.cc')
-rw-r--r-- | src/item.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item.cc b/src/item.cc index 9e297052..54f36e11 100644 --- a/src/item.cc +++ b/src/item.cc @@ -114,7 +114,7 @@ void item_t::set_tag(const string& tag, assert(result.second); } -void item_t::parse_tags(const char * p, int current_year) +void item_t::parse_tags(const char * p, optional<date_t::year_type> current_year) { if (const char * b = std::strchr(p, '[')) { if (const char * e = std::strchr(p, ']')) { @@ -160,7 +160,7 @@ void item_t::parse_tags(const char * p, int current_year) } } -void item_t::append_note(const char * p, int current_year) +void item_t::append_note(const char * p, optional<date_t::year_type> current_year) { if (note) { *note += '\n'; |