summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-02-28 03:18:58 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-02-28 03:18:58 -0600
commit6cbceb89286a4d0e4043b877cdf9f4f7471289c7 (patch)
tree09838d244c9fbbe037af4e578032b6bec5816352
parent52bca153dd7594915501a8a70de67369ac7788a5 (diff)
downloadfork-ledger-6cbceb89286a4d0e4043b877cdf9f4f7471289c7.tar.gz
fork-ledger-6cbceb89286a4d0e4043b877cdf9f4f7471289c7.tar.bz2
fork-ledger-6cbceb89286a4d0e4043b877cdf9f4f7471289c7.zip
Apply timelog time to the check-in day
Fixes #546
-rw-r--r--src/timelog.cc2
-rw-r--r--test/regress/ACE05ECE.test6
2 files changed, 7 insertions, 1 deletions
diff --git a/src/timelog.cc b/src/timelog.cc
index ee9a0b6c..5ab6a25c 100644
--- a/src/timelog.cc
+++ b/src/timelog.cc
@@ -89,7 +89,7 @@ namespace {
event.note = out_event.note;
std::auto_ptr<xact_t> curr(new xact_t);
- curr->_date = out_event.checkin.date();
+ curr->_date = event.checkin.date();
curr->code = out_event.desc; // if it wasn't used above
curr->payee = event.desc;
curr->pos = event.position;
diff --git a/test/regress/ACE05ECE.test b/test/regress/ACE05ECE.test
new file mode 100644
index 00000000..72ea562b
--- /dev/null
+++ b/test/regress/ACE05ECE.test
@@ -0,0 +1,6 @@
+i 2011/07/20 17:00:00 Hello Work project
+o 2011/07/21 01:00:00 Hello
+
+test reg Hello
+11-Jul-20 Work project (Hello) 8.00h 8.00h
+end test