to_html formats dates before year 1900

http://manage.dimagi.com/default.asp?83955#480145

Kinda hacky ... but allows most of the nice formatting of strftime to be kept, like '%b'.