Skip to content

Commit 401a475

Browse files
committed
Implement wait server to start in the integrations tests BeforeAll
Fix Binary Mode HTTP Header DateTime format. It is UTC time formatted in ISO 8601 format including milliseconds. Bump revision of the module version Signed-off-by: Dimitar Milov <[email protected]>
1 parent 062d7ad commit 401a475

File tree

7 files changed

+449
-408
lines changed

7 files changed

+449
-408
lines changed

src/CloudEventsPowerShell/CloudEvents.Sdk.psd1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
RootModule = 'CloudEvents.Sdk.psm1'
1010

1111
# Version number of this module.
12-
ModuleVersion = '0.2.0'
12+
ModuleVersion = '0.2.1'
1313

1414
# Supported PSEditions
1515
CompatiblePSEditions = @('Core')

src/CloudEventsPowerShell/CloudEvents.Sdk.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ PROCESS {
556556
$headers.Add(($HttpHeaderPrefix + $attribute.Key), $attribute.Value.ToString())
557557
}
558558
elseif ($attribute.Value -is [DateTime]) {
559-
$headers.Add(($HttpHeaderPrefix + $attribute.Key), $attribute.Value.ToString("u"))
559+
$headers.Add(($HttpHeaderPrefix + $attribute.Key), $attribute.Value.ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ss.fffZ'))
560560
}
561561
elseif ($attribute.Value -is [Uri] -or $attribute.Value -is [int]) {
562562
$headers.Add(($HttpHeaderPrefix + $attribute.Key), $attribute.Value.ToString())

0 commit comments

Comments
 (0)