Skip to content

Commit 378af92

Browse files
committed
incorporating comments from CR
1 parent 045092b commit 378af92

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ResourceManager/AzureBackup/Commands.AzureBackup/Cmdlets/Jobs/GetAzureRMBackupJob.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,14 +133,14 @@ protected override void ProcessRecord()
133133
To = DateTime.UtcNow;
134134
}
135135

136-
WriteDebug(String.Format(Resources.StartTimeFilter, System.Uri.EscapeDataString(From.Value.ToString("yyyy-MM-dd hh:mm:ss tt"))));
137-
WriteDebug(String.Format(Resources.EndTimeFilter, System.Uri.EscapeDataString(To.Value.ToString("yyyy-MM-dd hh:mm:ss tt"))));
136+
DateTimeFormatInfo format = new CultureInfo("en-US").DateTimeFormat;
137+
WriteDebug(String.Format(Resources.StartTimeFilter, System.Uri.EscapeDataString(From.Value.ToString("yyyy-MM-dd hh:mm:ss tt", format))));
138+
WriteDebug(String.Format(Resources.EndTimeFilter, System.Uri.EscapeDataString(To.Value.ToString("yyyy-MM-dd hh:mm:ss tt", format))));
138139
WriteDebug(String.Format(Resources.OperationFilter, Operation));
139140
WriteDebug(String.Format(Resources.StatusFilter, Status));
140141
WriteDebug(String.Format(Resources.TypeFilter, Type));
141142
WriteDebug(String.Format(Resources.JobIdFilter, JobId));
142143

143-
DateTimeFormatInfo format = new CultureInfo("en-US").DateTimeFormat;
144144
Mgmt.CSMJobQueryObject queryParams = new Mgmt.CSMJobQueryObject()
145145
{
146146

0 commit comments

Comments
 (0)