Work items: 30273
This commit is contained in:
@@ -124,8 +124,6 @@ namespace umbraco.editorControls.imagecropper
|
||||
int xml_x2 = Convert.ToInt32(xmlNode.Attributes["x2"].Value);
|
||||
int xml_y2 = Convert.ToInt32(xmlNode.Attributes["y2"].Value);
|
||||
|
||||
DateTime fileDate = Convert.ToDateTime(_xml.DocumentElement.Attributes["date"].Value);
|
||||
|
||||
// only use xml values if image is the same and different from defaults (document is stored inbetween image upload and cropping)
|
||||
//if (xml_x2 - xml_x != preset.TargetWidth || xml_y2 - xml_y != preset.TargetHeight)
|
||||
//fileDate == imageInfo.DateStamp && (
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace umbraco.editorControls.imagecropper
|
||||
if (root == null) return null;
|
||||
|
||||
XmlNode dateStampNode = doc.CreateNode(XmlNodeType.Attribute, "date", null);
|
||||
dateStampNode.Value = imageInfo.DateStamp.ToString();
|
||||
dateStampNode.Value = imageInfo.DateStamp.ToString("s");
|
||||
root.Attributes.SetNamedItem(dateStampNode);
|
||||
|
||||
for (int i = 0; i < data.Count; i++)
|
||||
|
||||
Reference in New Issue
Block a user