wordpress 联系表 7 日期选择器时间格式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/34507263/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Contact form 7 date picker time format
提问by johnsmith
I using contact form 7 datepicker plugin and using AM and PM options. Time is not changing after 12 to 1pm it is going 12 to 13. Below is the shortcode which I am using. I want Hour change into 1 PM instead of 13 or 14.
我使用联系表 7 日期选择器插件并使用 AM 和 PM 选项。时间在 12 点到 1 点之后没有变化,而是从 12 点到 13 点。下面是我正在使用的短代码。我希望将小时更改为下午 1 点,而不是 13 点或 14 点。
[datetime appointmentdate date-format:mm/dd/yy time-format:HH:mm_TT min-date:0 min-hour:09 max-hour:17 first-day:1]
[datetime appointmentdate date-format:mm/dd/yy time-format:HH:mm_TT min-date:0 min-hour:09 max-hour:17 first-day:1]
回答by masa
Just use:
只需使用:
[datetime appointmentdate date-format:mm/dd/yy time-format:hh:mm_TT min-date:0 min-hour:09 max-hour:17 first-day:1]
[日期时间约会日期日期格式:mm/dd/yy 时间格式:hh:mm_TT min-date:0 min-hour:09 max-hour:17 first-day:1]
回答by Bogie
Sorry I know this is old but if it helps here is what I had to do. Just make sure this line is in your theme's function.php file
对不起,我知道这很旧,但如果它有帮助,这就是我必须做的。只要确保这一行在你的主题的 function.php 文件中
add_filter( 'wpcf7_support_html5_fallback', '__return_true' );