fix backwards submit history time bugs

http://manage.dimagi.com/default.asp?101640