]> source.dussan.org Git - redmine.git/commit
Accept the following formats for the timelog "hours" field: 1h, 1 h, 1 hour, 2 hours...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 2 Apr 2008 19:52:12 +0000 (19:52 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 2 Apr 2008 19:52:12 +0000 (19:52 +0000)
commit4cbe6b626e3b338d7c8d7dcb236d40f8f99ff393
treeb2905f64e9e5d700872b1130a787ebb03ca1b133
parent467f74510e44d2c0821fad691a71bc0292b8944c
Accept the following formats for the timelog "hours" field: 1h, 1 h, 1 hour, 2 hours, 30m, 30min, 1h30, 1h30m, 1:30.
Also accept 1,5 for 1.5 hour (closes #975). Note that 1.5 is still equal to 1h30 and not 1h50 (#947).

git-svn-id: http://redmine.rubyforge.org/svn/trunk@1320 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/models/time_entry.rb
test/unit/time_entry_test.rb [new file with mode: 0644]