My booking pluging on wordpress is not working It say Fatal error: Call to a member function format () on boolean in ...
and say me to go to this line of archive
public static function convert_date_to_mdY( $date_string, $date_format = null ) {
if ( ! $date_format ) {
$date_format = AWE_function::get_current_date_format();
}
if ( 'm/d/Y' == $date_format ) {
return $date_string;
}
$d = DateTime::createFromFormat( $date_format, $date_string );
return $d->format( 'm/d/Y' );
}
What´s the problem?