wp3fan
Forum Replies Created
Viewing 4 replies - 1 through 4 (of 4 total)
-
Forum: Reviews
In reply to: [WP Hotel Booking] Good plugin with basic functionalityForum: Plugins
In reply to: [WP Hotel Booking] German dateHello? Anyone out there?
Forum: Plugins
In reply to: [WP Hotel Booking] German dateSo, 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.
Forum: Plugins
In reply to: [WP Hotel Booking] German dateHi,
Changing the Date Format in the WP Settings doesn’t help.
When I enter “d.m.Y” as Date Format, your plugin displays the american Date Format instead.
When I add these lines in your switch statement in the hb_date_time_format_js() function, it works:
case 'd.m.Y': $return = 'dd.mm.yy'; break;Cheers,
wp3fan
Viewing 4 replies - 1 through 4 (of 4 total)