summaryrefslogtreecommitdiff
path: root/emacs.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2008-08-01 17:37:22 -0400
committerJohn Wiegley <johnw@newartisans.com>2008-08-01 17:37:22 -0400
commit858978de8931ce5c98882472b10051f4e57dd029 (patch)
tree2da6d0d78cc223b9f60c3161951b3b67bd1ccd4a /emacs.cc
parentea3b386062e62379c546239f2e95cb1e11c56d23 (diff)
downloadledger-858978de8931ce5c98882472b10051f4e57dd029.tar.gz
ledger-858978de8931ce5c98882472b10051f4e57dd029.tar.bz2
ledger-858978de8931ce5c98882472b10051f4e57dd029.zip
Journal data structures now use date_t instead of datetime_t.
This means transactions can only have day-level granularity -- which has always been the case from an data file point of view. The advantage to this restriction is that reports will now be immune from daylight savings related bugs, where a transaction falls to the wrong side of a --monthly report, for example.
Diffstat (limited to 'emacs.cc')
-rw-r--r--emacs.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs.cc b/emacs.cc
index bc039290..688e59af 100644
--- a/emacs.cc
+++ b/emacs.cc
@@ -13,7 +13,7 @@ void format_emacs_xacts::write_entry(entry_t& entry)
out << (static_cast<unsigned long>(entry.beg_line) + 1) << " ";
- tm when = boost::posix_time::to_tm(entry.date());
+ tm when = gregorian::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) ";