Skip to content

Change timestamp format used in gateway API #2910

@benfrancis

Description

@benfrancis

Timestamps for actions and events in the gateway API are currently in the format 2022-01-20T17:21:12+00:00.

The latest draft of the W3C WoT Profile specification constrains the date format so that it must end in "Z".

If and when w3c/wot-profile#119 and w3c/wot-profile#127 land, I suggest changing action.ts and event.ts to use Date().toISOString() directly rather than Utils.timestamp(), which should output the expected date format.

See WebThingsIO/gateway-addon-node#106 for more information.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Product Backlog

Relationships

None yet

Development

No branches or pull requests

Issue actions