Proper fix for date parsing

Submitted by:	Yoshiaki Kasahara <kasahara@nc.kyushu-u.ac.jp>