So, are you going to fix it? It would be great if you did.
I looked into the code and the problem is, that you validate the Date Format that is set in the WP Settings:
// date time format
function hb_date_time_format_js() {
// set detault datetime format datepicker
$dateFormat = hb_get_date_format();
switch ( $dateFormat ) {
case 'Y-m-d':
$return = 'yy-mm-dd';
break;
//
case 'Y/m/d':
$return = 'yy/mm/dd';
break;
case 'd/m/Y':
$return = 'dd/mm/yy';
break;
//
case 'd-m-Y':
$return = 'dd-mm-yy';
break;
case 'm/d/Y':
$return = 'mm/dd/yy';
break;
//
case 'm-d-Y':
$return = 'mm-dd-yy';
break;
case 'F j, Y':
$return = 'MM dd, yy';
break;
default:
$return = 'mm/dd/yy';
break;
}
return $return;
}
As there is no “case ‘d.m.Y'”, the “default” switch statement is executed and the default american date (mm/dd/yy) returned.
So basically, you’d have to add a “case ‘d.m.Y'”-statement, like the statement I’ve written in my second post.
If you need any help, I’d be glad to help you out.