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 3
3
4
4
using System ;
5
5
using System . Collections . Generic ;
6
+ using System . Globalization ;
6
7
using System . IO ;
7
8
using System . Linq ;
8
9
using System . Text . Json ;
@@ -188,7 +189,7 @@ public virtual void WriteValue(long value)
188
189
/// <param name="value">The DateTime value.</param>
189
190
public virtual void WriteValue ( DateTime value )
190
191
{
191
- this . WriteValue ( value . ToString ( "o" ) ) ;
192
+ this . WriteValue ( value . ToString ( "o" , CultureInfo . InvariantCulture ) ) ;
192
193
}
193
194
194
195
/// <summary>
@@ -197,7 +198,7 @@ public virtual void WriteValue(DateTime value)
197
198
/// <param name="value">The DateTimeOffset value.</param>
198
199
public virtual void WriteValue ( DateTimeOffset value )
199
200
{
200
- this . WriteValue ( value . ToString ( "o" ) ) ;
201
+ this . WriteValue ( value . ToString ( "o" , CultureInfo . InvariantCulture ) ) ;
201
202
}
202
203
203
204
/// <summary>
You can’t perform that action at this time.
0 commit comments