17 references to ToDateTimeOffset
Microsoft.AspNetCore.DataProtection.Tests (7)
KeyManagement\XmlKeyManagerTests.cs (7)
373Assert.Equal(XmlConvert.ToDateTimeOffset("2015-01-01T00:00:00Z"), keys[0].CreationDate); 374Assert.Equal(XmlConvert.ToDateTimeOffset("2015-02-01T00:00:00Z"), keys[0].ActivationDate); 375Assert.Equal(XmlConvert.ToDateTimeOffset("2015-03-01T00:00:00Z"), keys[0].ExpirationDate); 379Assert.Equal(XmlConvert.ToDateTimeOffset("2015-04-01T00:00:00Z"), keys[1].CreationDate); 380Assert.Equal(XmlConvert.ToDateTimeOffset("2015-05-01T00:00:00Z"), keys[1].ActivationDate); 381Assert.Equal(XmlConvert.ToDateTimeOffset("2015-06-01T00:00:00Z"), keys[1].ExpirationDate); 635var revocationDate = XmlConvert.ToDateTimeOffset("2015-03-01T19:13:19.7573854-08:00");
System.Data.Common (2)
System\Data\Common\DateTimeOffsetStorage.cs (1)
179return XmlConvert.ToDateTimeOffset(s);
System\Data\Common\SQLConvert.cs (1)
638return XmlConvert.ToDateTimeOffset((string)value);
System.Private.Xml (4)
System\Xml\Core\XmlReader.cs (1)
201return XmlConvert.ToDateTimeOffset(InternalReadContentAsString());
System\Xml\Serialization\PrimitiveXmlSerializers.cs (1)
484o = System.Xml.XmlConvert.ToDateTimeOffset(Reader.ReadElementString());
System\Xml\Serialization\ReflectionXmlSerializationReader.cs (1)
1209"DateTimeOffset" => XmlConvert.ToDateTimeOffset(value),
System\Xml\Serialization\XmlSerializationReader.cs (1)
673value = XmlConvert.ToDateTimeOffset(ReadStringValue());
System.Private.Xml.Linq (4)
System\Xml\Linq\XAttribute.cs (2)
591return XmlConvert.ToDateTimeOffset(attribute.value); 608return XmlConvert.ToDateTimeOffset(attribute.value);
System\Xml\Linq\XElement.cs (2)
1754return XmlConvert.ToDateTimeOffset(element.Value); 1774return XmlConvert.ToDateTimeOffset(element.Value);