File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 13
13
// ----------------------------------------------------------------------------------
14
14
15
15
using System ;
16
+ using System . Globalization ;
16
17
using System . Management . Automation ;
17
18
using System . Collections . Generic ;
18
19
using System . Xml ;
@@ -139,10 +140,12 @@ protected override void ProcessRecord()
139
140
WriteDebug ( String . Format ( Resources . TypeFilter , Type ) ) ;
140
141
WriteDebug ( String . Format ( Resources . JobIdFilter , JobId ) ) ;
141
142
143
+ DateTimeFormatInfo format = new CultureInfo ( "en-US" ) . DateTimeFormat ;
142
144
Mgmt . CSMJobQueryObject queryParams = new Mgmt . CSMJobQueryObject ( )
143
145
{
144
- StartTime = From . Value . ToString ( "yyyy-MM-dd hh:mm:ss tt" ) ,
145
- EndTime = To . Value . ToString ( "yyyy-MM-dd hh:mm:ss tt" ) ,
146
+
147
+ StartTime = From . Value . ToString ( "yyyy-MM-dd hh:mm:ss tt" , format ) ,
148
+ EndTime = To . Value . ToString ( "yyyy-MM-dd hh:mm:ss tt" , format ) ,
146
149
Operation = Operation ,
147
150
Status = Status ,
148
151
WorkloadType = Type ,
You can’t perform that action at this time.
0 commit comments