bgame-hunter / wordpress-custom-content-type-manager

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

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

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 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

GoogleCodeExporter commented 8 years ago
Probably the only sane solution here is to always store the value in a 
standardized format

Original comment by ever...@fireproofsocks.com on 11 May 2015 at 5:20