fix the date parsing of the rand plugin.