We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am running WP 4.6 with the version of CMB from 5th October, commit 6f78ad4
The date gets converted to strtotime but then last minute before the setting is saved it is changed back to a formated state.
The text was updated successfully, but these errors were encountered:
Date-related issues: #175, #292, #249, #133, #146
Sorry, something went wrong.
@grappler are you still experiencing this? Any thoughts or ideas on the bug?
@mikeselander This is the code that we are using to fix this.
class DateTimestampField extends CMB_Date_Timestamp_Field { /** * Parse and validate an array of timestamp values. */ public function parse_save_values() : void { // Prevent saving this field twice. unset( $_POST[ '_cmb_present_' . $this->id ] ); foreach ( $this->values as &$value ) { $value = strtotime( $value ); } sort( $this->values ); } }
No branches or pull requests
I am running WP 4.6 with the version of CMB from 5th October, commit 6f78ad4
The date gets converted to strtotime but then last minute before the setting is saved it is changed back to a formated state.
The text was updated successfully, but these errors were encountered: