We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec13a2f commit c4f7f4dCopy full SHA for c4f7f4d
OpenGraph.types.ps1xml
@@ -19,7 +19,11 @@
19
} else {
20
foreach ($property in $this.PSObject.Properties) {
21
if ($property.Name -match ':') {
22
- "<meta property='$($property.Name)' content='$([Web.HttpUtility]::HtmlAttributeEncode($property.Value))' />"
+ $value = $property.Value
23
+ if ($value -is [DateTime]) {
24
+ $value = $value.ToUniversalTime().ToString('o')
25
+ }
26
+ "<meta property='$($property.Name)' content='$([Web.HttpUtility]::HtmlAttributeEncode($value))' />"
27
}
28
29
}) -join [Environment]::Newline
0 commit comments