Fix date function is defined in parent class file.