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