fix bug: date_module can't load substr function.