@@ -1250,7 +1250,7 @@ class PocoJsonSerializerStrategy : IJsonSerializerStrategy
12501250 internal static readonly Type [ ] EmptyTypes = new Type [ 0 ] ;
12511251 internal static readonly Type [ ] ArrayConstructorParameterTypes = new Type [ ] { typeof ( int ) } ;
12521252
1253- private static readonly string [ ] Iso8601Formats = Constants . Iso8601Formats ;
1253+ private static readonly string [ ] Iso8601Format = Constants . Iso8601Formats ;
12541254
12551255 public PocoJsonSerializerStrategy ( )
12561256 {
@@ -1359,9 +1359,9 @@ public virtual object DeserializeObject(object value, Type type)
13591359 if ( type == typeof ( NPath ) || ( ReflectionUtils . IsNullableType ( type ) && Nullable . GetUnderlyingType ( type ) == typeof ( NPath ) ) )
13601360 return new NPath ( str ) ;
13611361 if ( type == typeof ( DateTime ) || ( ReflectionUtils . IsNullableType ( type ) && Nullable . GetUnderlyingType ( type ) == typeof ( DateTime ) ) )
1362- return DateTime . ParseExact ( str , Constants . Iso8601Formats , CultureInfo . InvariantCulture , DateTimeStyles . AssumeUniversal | DateTimeStyles . AdjustToUniversal ) ;
1362+ return DateTime . ParseExact ( str , Iso8601Format , CultureInfo . InvariantCulture , DateTimeStyles . AssumeUniversal | DateTimeStyles . AdjustToUniversal ) ;
13631363 if ( type == typeof ( DateTimeOffset ) || ( ReflectionUtils . IsNullableType ( type ) && Nullable . GetUnderlyingType ( type ) == typeof ( DateTimeOffset ) ) )
1364- return DateTimeOffset . ParseExact ( str , Constants . Iso8601Formats , CultureInfo . InvariantCulture , DateTimeStyles . AssumeUniversal | DateTimeStyles . AdjustToUniversal ) ;
1364+ return DateTimeOffset . ParseExact ( str , Iso8601Format , CultureInfo . InvariantCulture , DateTimeStyles . AssumeUniversal | DateTimeStyles . AdjustToUniversal ) ;
13651365 if ( type == typeof ( Guid ) || ( ReflectionUtils . IsNullableType ( type ) && Nullable . GetUnderlyingType ( type ) == typeof ( Guid ) ) )
13661366 return new Guid ( str ) ;
13671367 if ( type == typeof ( UriString ) || ( ReflectionUtils . IsNullableType ( type ) && Nullable . GetUnderlyingType ( type ) == typeof ( UriString ) ) )
@@ -1494,9 +1494,9 @@ protected virtual bool TrySerializeKnownTypes(object input, out object output)
14941494 if ( input is NPath || input is UriString )
14951495 output = input . ToString ( ) ;
14961496 else if ( input is DateTime )
1497- output = ( ( DateTime ) input ) . ToUniversalTime ( ) . ToString ( Iso8601Formats [ 0 ] , CultureInfo . InvariantCulture ) ;
1497+ output = ( ( DateTime ) input ) . ToUniversalTime ( ) . ToString ( Iso8601Format [ 0 ] , CultureInfo . InvariantCulture ) ;
14981498 else if ( input is DateTimeOffset )
1499- output = ( ( DateTimeOffset ) input ) . ToUniversalTime ( ) . ToString ( Iso8601Formats [ 0 ] , CultureInfo . InvariantCulture ) ;
1499+ output = ( ( DateTimeOffset ) input ) . ToUniversalTime ( ) . ToString ( Iso8601Format [ 0 ] , CultureInfo . InvariantCulture ) ;
15001500 else if ( input is Guid )
15011501 output = ( ( Guid ) input ) . ToString ( "D" ) ;
15021502 else if ( input is Uri )
0 commit comments