google-code-export / wordpress-custom-content-type-manager

Automatically exported from code.google.com/p/wordpress-custom-content-type-manager
2 stars 1 forks source link

Change date formats in database when a custom field definition is changed #554

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Custom date fields are defined with a date format.  When a post is created or 
edited, the value for this custom field is stored using the date format  from 
the field definition.  However, if the date format is changed in the 
definition, the existing values in the database do not change.  A nice feature 
would be to change the values stored in the database to match the newly 
selected format.  This would avoid the problems some users face when needing to 
change the date format -- they must either manually edit/save each post using 
the field, or they must manually groom through their database.  Optionally, 
this behavior could be turned on/off on the CCTM's global settings page.

Original issue reported on code.google.com by ever...@fireproofsocks.com on 10 May 2014 at 5:02