SetSourceModifiedTime() does not have any effect

208
0
06-16-2023 06:36 AM
marco_vertigis
New Contributor III

Changing  the modified Date of a LayoutProjectItem with SetSourceModifiedTime() does not have any effect at all. Bug?

 

DateTime? modifiedDate = ...
if (modifiedDate.HasValue)
{
   var timeInstant = new TimeInstant
   {
      Time = modifiedDate.Value
   };
				 
   ((IProjectItemEdit)layoutProjectItem).SetSourceModifiedTime(timeInstant);
}

 

 Context: We downloading a Layout PortalItem into Pro and creating a LayoutProjectItem. We want to sync the modified date. Saving the LayoutProjectItem with Pro Tools also does not change the ModifiedDate at all.

0 Kudos
0 Replies