Closed zu closed 1 year ago
Similar issue #4925 (I think)
and yes could reproduce that! (applies to all non English settings I tested)
Another one - #4814 but this time it's only about the output but I guess while you are at it…
Just as an FYI, I spent some time today looking for a solution and wanted to share what I found:
strptime()
does not behave consistently from environment to environment and is not implemented in Windows at all).altField
and altFormat
). The downside is that you must know the field's configured format when displaying the value in the front-end, for example. This is pretty much the way WordPress handles post dates.The problem is still in Pods 2.8, with French date format, I cannot save the CPT, either with default Wordpress format, or custom (j F Y).
Hi @sandrine-rodrigues
I created a new issue to bundle related issues together.
Let's retest this after Pods 2.8.9 goes out as it has code that touches this logic.
Still the same issue after updating to Pods 2.8.9....
@sc0ttkclark This is a react / DFV issue, see: https://github.com/pods-framework/pods/issues/6389
Hi, I just solved this problem by enabling HTML 5 fields in the "Date Options". And the format is validatable by php and as I wish in the frontend.
Hi, I just solved this problem by enabling HTML 5 fields in the "Date Options". And the format is validatable by php and as I wish in the frontend.
Unfortunately, I cannot confirm this. I have also enabled HTML5 and selected "WordPress default (j. F Y)" as the format. The website language is German. The date output is still English.
HTML5 doesn't support various formats. The format is based on your browser mostly. On the front-end it should change to the selected format depending on how you use the field. Our functions and magic tags all output the formatted value.
Closing issue!
Ok, using the pods shortcode with the syntax for magic tags and the technique described here I could make it work. Thanks!
Issue Overview
Entry in a Date / Time field can't be recognised when using with Date Format Type "WordPress Default".
The Webseite is German and the with WordPress Default uses the monthname: j. F Y
Expected Behavior
Datetime value should be saved but won't.
Current Behavior
Possible Solution
WordPress Environment
Pods Package Export (helpful!)
Workaround or Alternate Solution Until Bug is Addressed
Use a format with no monthnames but only numbers.
Related Issues and/or PRs