Work items: 30273

This commit is contained in:
hartvig
2011-12-22 10:20:17 -01:00
parent b0f0777952
commit ea0ffc8ea5
3 changed files with 1 additions and 6 deletions

View File

@@ -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 && (

View File

@@ -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++)