How to set a time? #202
-
This results in the current date + time being included in the output While the Schema should contain only the time, formatted as Can someone point me in the right direction? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
That's a problem right now - schema-org/generator/Parser/Tasks/ParseProperty.php Lines 51 to 54 in 111488e And the DateTimeInterface php type is always formatted as atom string.schema-org/generator/templates/static/BaseType.php Lines 124 to 126 in 111488e It would need some additional data passing from the spec parser to the payload serializer or some additional interfaces - which would have to be custom as php doesn't have specific date or time only interfaces. |
Beta Was this translation helpful? Give feedback.
That's a problem right now -
Time
,Date
andDateTime
schema.org types are all assigned theDateTimeInterface
php type.schema-org/generator/Parser/Tasks/ParseProperty.php
Lines 51 to 54 in 111488e
And the
DateTimeInterface
php type is always formatted as atom string.schema-org/generator/templates/static/BaseType.php
Lines 124 to 126 in 111488e
It would need some additional data passing from the spec parser to the payload serializer or some additional interfaces …