我已经创建了一个字段作为字段类型Date(Unix timestamp)。
当我在上面创建的字段中编辑具有某些输入值的内容时,它显示如下错误:-
PDOException: SQLSTATE[01000]: Warning: 1265 Data truncated for column 'field_reprisal_date_value' at row 1: INSERT INTO {field_data_field_reprisal_date} (entity_type, entity_id, revision_id, bundle, delta, language, field_reprisal_date_value) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6); Array ( [:db_insert_placeholder_0] => node [:db_insert_placeholder_1] => 258985 [:db_insert_placeholder_2] => 245170 [:db_insert_placeholder_3] => embedded_video [:db_insert_placeholder_4] => 0 [:db_insert_placeholder_5] => und [:db_insert_placeholder_6] => 2015-03-02 ) in field_sql_storage_field_storage_write() (line 494 of /www/d7yourtango/modules/field/modules/field_sql_storage/field_sql_storage.module).
但是在再次删除上面的字段后,我创建了另一个字段作为字段类型Date,并且我处理相同的字段,它起作用了。
所以我的问题是为什么在第一种情况下会发生这种情况?
创建字段的日期,日期(ISO格式),日期(Unix时间戳)字段类型之间的基本区别是什么?