File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Microsoft.OpenApi/Writers Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 33
44using System ;
55using System . Collections . Generic ;
6+ using System . Globalization ;
67using System . IO ;
78using System . Linq ;
89using System . Text . Json ;
@@ -188,7 +189,7 @@ public virtual void WriteValue(long value)
188189 /// <param name="value">The DateTime value.</param>
189190 public virtual void WriteValue ( DateTime value )
190191 {
191- this . WriteValue ( value . ToString ( "o" ) ) ;
192+ this . WriteValue ( value . ToString ( "o" , CultureInfo . InvariantCulture ) ) ;
192193 }
193194
194195 /// <summary>
@@ -197,7 +198,7 @@ public virtual void WriteValue(DateTime value)
197198 /// <param name="value">The DateTimeOffset value.</param>
198199 public virtual void WriteValue ( DateTimeOffset value )
199200 {
200- this . WriteValue ( value . ToString ( "o" ) ) ;
201+ this . WriteValue ( value . ToString ( "o" , CultureInfo . InvariantCulture ) ) ;
201202 }
202203
203204 /// <summary>
You can’t perform that action at this time.
0 commit comments