Meta Box
Support › MB Group › Wrong date format in field (date)Resolved
Hi,
when i save date in "datetime" field in a clonable group (maybe this is a general problem?) in custom format, then date in DB is with wrong format.
array( 'name' => __('UPDATE'), 'id' => $prefix . 'product_update', 'type' => 'datetime', 'size' => 20, 'js_options' => ['dateFormat' => 'dd. mm. yy'], 'save_format' => 'Y-m-d-H-i' )
then date vaĆŻue in DB is in format "01. 09. 2022 11:32"
Thanks for your feedback.
The datetime subfield in a group will be saved value in the standard format (raw) to the database. It does not look working with the setting save_format. I will inform the development team to consider supporting this case in future updates.
datetime
save_format
Has there been any progress on this issue? Just come unstuck at this end because of it, nearly a year later.
Thanks,
Will