We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a6f3169 commit ec13a2fCopy full SHA for ec13a2f
Types/OpenGraph/get_HTML.ps1
@@ -11,7 +11,11 @@
11
} else {
12
foreach ($property in $this.PSObject.Properties) {
13
if ($property.Name -match ':') {
14
- "<meta property='$($property.Name)' content='$([Web.HttpUtility]::HtmlAttributeEncode($property.Value))' />"
+ $value = $property.Value
15
+ if ($value -is [DateTime]) {
16
+ $value = $value.ToUniversalTime().ToString('o')
17
+ }
18
+ "<meta property='$($property.Name)' content='$([Web.HttpUtility]::HtmlAttributeEncode($value))' />"
19
}
20
21
}) -join [Environment]::Newline
0 commit comments