AnsweredAssumed Answered

How to change cm:created property of a node?

Question asked by sebp on Oct 27, 2009
Latest reply on Apr 6, 2010 by swardi
I have the following code to set the create date of a node:

Date d = importSet.simpleDateFormat.parse(extractedDateString);
Map<QName, Serializable> props = nodeService.getProperties(actionedUponNodeRef);
props.put(ContentModel.PROP_TITLE, "someNewName");
props.put(ContentModel.PROP_CREATED, d);
nodeService.setProperties(actionedUponNodeRef, props);

Using Alfresco Labs 2.9 I was able to set the create date. In 3.2 Community this code is not working. Only the title is set but not the create date. Is there another way of changing the created property? Did I miss something?