Saving Visio document, and loading the saved document, and saving again with Aspose.Diagram produces different outputs

Dear Aspose Team,

One of our tests caught an issue in the Aspose.Diagram’s Save method.
We use Aspose.Diagram to load Visio documents into Diagrams before we process them. The process that we make, is loading the Visio document into a Diagram, then saving it with the diagram’s Save method. Then after that, we load the saved Visio document, and save it again with the Save method.
The problem we found is the following. The file that we save in the first run, is the same as the source file. But, when we load then save the file from the first run, then it produces a different file: the file’s document properties has changed, more precisely the custom.xml file.
We found out that the difference is produced by the locale. In the second run the time is written out depending on the locale in which we are in. The issue is not present in the first run, only just when we try to process an already saved file again.
image.png (22.9 KB)

Here is a sample code that we were able to reproduce the issue.

string sourceFilePath = "C:\\...\\Downloads\\aspose\\1Space.vsdx";
string exportedFilePath = "C:\...\\Downloads\\aspose\\1Space_Exported.vsdx";
string doubleExportedFilePath = "C:\\...\\Downloads\\aspose\\1Space_Double Exported.vsdx";
var diagram = new Diagram(sourceFilePath);
diagram.Save(exportedFilePath, SaveFileFormat.Vsdx);
var exportedDiagram = new Diagram(exportedFilePath);
exportedDiagram.Save(doubleExportedFilePath, SaveFileFormat.Vsdx);

I am also attaching to you the source file, the exported file from the first run, and the double exported file from the second run.
1Space.zip (34.0 KB)

Also, we could reproduce the issue with the latest version of Aspose.Diagram as well.

Is there a setting that we miss or is this a real issue?

We are waiting for your findings/answers.

Kind regards,
Varga Matild

@matild
Thanks for the template files.
After an initial testing, I am able to reproduce the issue as you mentioned by using your template file. I found the filetime changed after resaving the file.
We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): DIAGRAMNET-53385

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

The issues you have found earlier (filed as DIAGRAMNET-53385) have been fixed in this update. This message was posted using Bugs notification tool by philip.zhou