[eluser]WanWizard[/eluser]
If you don't use a unix timestamp, Datamapper uses the 'timestamp_format' to convert the unix timestamp using strtotime().
The way Datamapper configurations work:
- if your model has a property with the name of a config key, that will be used
- if your config/datamapper.php file has the config key, that will be used
- otherwise it will use the Datamapper default value
In this case, I don't know if you have defined it in the model, but you have defined it in the config file, so that value will be used. Unfortunately, "" is not a valid strtotime() format string, so the date will be set to FALSE, which MySQL will convert to NULL as it is not a valid value for the column.
So, either remove the definition, or set it to the correct value ('Y-m-d H:i
' for a MySQL DATETIME column).