Changeset 2717


Ignore:
Timestamp:
01/29/10 13:31:36 (10 years ago)
Author:
epitzer
Message:

reset date of ZipEntries (to make binary data directly comparable) (#802)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/Persistence Test/HeuristicLab.Persistence/3.3/Default/Xml/XmlGenerator.cs

    r2037 r2717  
    201201          zipStream.IsStreamOwner = false;
    202202          zipStream.SetLevel(compression);
    203           zipStream.PutNextEntry(new ZipEntry("data.xml"));
     203          zipStream.PutNextEntry(new ZipEntry("data.xml") { DateTime = DateTime.MinValue });
    204204          StreamWriter writer = new StreamWriter(zipStream);
    205205          foreach (ISerializationToken token in serializer) {
     
    208208          }
    209209          writer.Flush();
    210           zipStream.PutNextEntry(new ZipEntry("typecache.xml"));
     210          zipStream.PutNextEntry(new ZipEntry("typecache.xml") { DateTime = DateTime.MinValue });
    211211          foreach (string line in generator.Format(serializer.TypeCache)) {
    212212            writer.Write(line);
Note: See TracChangeset for help on using the changeset viewer.