mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19545: Consistifying Import/Export methods on DateTimeFieldDriver.
Work Item: 19545 --HG-- branch : 1.x
This commit is contained in:
@@ -121,7 +121,7 @@ namespace Orchard.Fields.Drivers {
|
||||
}
|
||||
|
||||
protected override void Exporting(ContentPart part, Fields.DateTimeField field, ExportContentContext context) {
|
||||
context.Element(GetPrefix(field, part)).SetAttributeValue("DateTime", XmlConvert.ToString(field.Storage.Get<DateTime>(null), XmlDateTimeSerializationMode.Utc));
|
||||
context.Element(GetPrefix(field, part)).SetAttributeValue("Value", XmlConvert.ToString(field.Storage.Get<DateTime>(null), XmlDateTimeSerializationMode.Utc));
|
||||
}
|
||||
|
||||
protected override void Describe(DescribeMembersContext context) {
|
||||
|
Reference in New Issue
Block a user