mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Wire up Date to timestamp
This commit is contained in:
@@ -63,7 +63,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
case "softwaredb":
|
case "softwaredb":
|
||||||
Header.Name = (Header.Name == null ? "openMSX Software List" : Header.Name);
|
Header.Name = (Header.Name == null ? "openMSX Software List" : Header.Name);
|
||||||
Header.Description = (Header.Description == null ? Header.Name : Header.Description);
|
Header.Description = (Header.Description == null ? Header.Name : Header.Description);
|
||||||
// string timestamp = xtr.GetAttribute("timestamp"); // CDATA
|
Header.Date = (Header.Date == null ? xtr.GetAttribute("timestamp") : Header.Date);
|
||||||
xtr.Read();
|
xtr.Read();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -588,7 +588,7 @@ namespace SabreTools.Library.DatFiles
|
|||||||
xtw.WriteDocType("softwaredb", null, "softwaredb1.dtd", null);
|
xtw.WriteDocType("softwaredb", null, "softwaredb1.dtd", null);
|
||||||
|
|
||||||
xtw.WriteStartElement("softwaredb");
|
xtw.WriteStartElement("softwaredb");
|
||||||
//xtw.WriteAttributeString("timestamp", timestamp);
|
xtw.WriteAttributeString("timestamp", Header.Date);
|
||||||
|
|
||||||
//TODO: Figure out how to fix the issue with removed formatting after this point
|
//TODO: Figure out how to fix the issue with removed formatting after this point
|
||||||
// xtw.WriteComment("Credits");
|
// xtw.WriteComment("Credits");
|
||||||
|
|||||||
@@ -728,6 +728,10 @@ namespace SabreTools.Library.DatFiles
|
|||||||
|
|
||||||
case "datdate":
|
case "datdate":
|
||||||
case "dat date":
|
case "dat date":
|
||||||
|
case "dat-date":
|
||||||
|
case "timestamp":
|
||||||
|
case "time stamp":
|
||||||
|
case "time-stamp":
|
||||||
return "DatFile.Date";
|
return "DatFile.Date";
|
||||||
|
|
||||||
case "author":
|
case "author":
|
||||||
|
|||||||
Reference in New Issue
Block a user