Skip to content

Commit 427100c

Browse files
author
Michael Gasch
authored
Merge pull request #25 from dmilov/topic/dmilov/fix-integration-tests-run
2 parents 062d7ad + 401a475 commit 427100c

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)