diff options
author | John Wiegley <johnw@newartisans.com> | 2008-05-08 02:19:44 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-05-08 02:50:19 -0400 |
commit | d159501993cfd0215f94f0e5e16796558417b681 (patch) | |
tree | b0e2b9e9e707dd3f71683e81b9c9c3a1f8b47f86 /emacs.cc | |
parent | 7ecbf3e125481a02c541f9eb3ed795ac3e245541 (diff) | |
download | fork-ledger-d159501993cfd0215f94f0e5e16796558417b681.tar.gz fork-ledger-d159501993cfd0215f94f0e5e16796558417b681.tar.bz2 fork-ledger-d159501993cfd0215f94f0e5e16796558417b681.zip |
The code is compiling again, but it's far from being able to run yet.
Diffstat (limited to 'emacs.cc')
-rw-r--r-- | emacs.cc | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5,7 +5,7 @@ namespace ledger { void format_emacs_transactions::write_entry(entry_t& entry) { int idx = entry.src_idx; - for (strings_list::iterator i = entry.journal->sources.begin(); + for (paths_list::const_iterator i = entry.journal->sources.begin(); i != entry.journal->sources.end(); i++) if (! idx--) { @@ -15,7 +15,8 @@ void format_emacs_transactions::write_entry(entry_t& entry) out << (((unsigned long)entry.beg_pos) + 1) << " "; - std::time_t date = entry.date(); + tm when = boost::posix_time::to_tm(entry.date()); + std::time_t date = std::mktime(&when); // jww (2008-04-20): Is this GMT or local? out << "(" << (date / 65536) << " " << (date % 65536) << " 0) "; if (entry.code.empty()) |