add date utils and fix face detect bug