|
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;
|
@@ -132,17 +133,19 @@ protected override void ProcessRecord()
|
132 | 133 | To = DateTime.UtcNow;
|
133 | 134 | }
|
134 | 135 |
|
135 |
| - WriteDebug(String.Format(Resources.StartTimeFilter, System.Uri.EscapeDataString(From.Value.ToString("yyyy-MM-dd hh:mm:ss tt")))); |
136 |
| - 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)))); |
137 | 139 | WriteDebug(String.Format(Resources.OperationFilter, Operation));
|
138 | 140 | WriteDebug(String.Format(Resources.StatusFilter, Status));
|
139 | 141 | WriteDebug(String.Format(Resources.TypeFilter, Type));
|
140 | 142 | WriteDebug(String.Format(Resources.JobIdFilter, JobId));
|
141 | 143 |
|
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,
|
|
0 commit comments