Trailing errors on node clone
Base usage of DateTime in clone_alter causes the following errors :
Warning: Use of undefined constant field_form1_expiration - assumed 'field_form1_expiration' (this will throw an Error in a future version of PHP) in yakforms_clone_node_alter() (line 732 of /var/www/fresh_drupal/profiles/yakforms_profile/modules/yakforms/yakforms.module).
Warning: Illegal string offset 'und' in yakforms_clone_node_alter() (line 732 of /var/www/fresh_drupal/profiles/yakforms_profile/modules/yakforms/yakforms.module).
Warning: Illegal string offset 'value' in yakforms_clone_node_alter() (line 732 of /var/www/fresh_drupal/profiles/yakforms_profile/modules/yakforms/yakforms.module).
Notice: Undefined property: DateTime::$date in yakforms_clone_node_alter() (line 737 of /var/www/fresh_drupal/profiles/yakforms_profile/modules/yakforms/yakforms.module).