Skip to content

Instantly share code, notes, and snippets.

@RavenHursT
Last active May 1, 2021 20:09
Show Gist options
  • Save RavenHursT/fc8996567028165ebb0f57675f26ddff to your computer and use it in GitHub Desktop.
Save RavenHursT/fc8996567028165ebb0f57675f26ddff to your computer and use it in GitHub Desktop.
Proposed Working Hours Property
// Each index in the array corrisponds to a day of the week.
// Let the consumer of the API decide what each day should be labelled as, based on their L18N/I18N implementation.
// Z-07:00:00 is EST. Z-offset should be set by the client to reflect the TZ of the user that set the value.
{
"working_hours": [
["09:00:00Z-07:00:00", "17:00:00Z-07:00:00"],
["09:00:00Z-07:00:00", "17:00:00Z-07:00:00"],
["09:00:00Z-07:00:00", "17:00:00Z-07:00:00"],
["09:00:00Z-07:00:00", "17:00:00Z-07:00:00"],
["09:00:00Z-07:00:00", "15:00:00Z-07:00:00"],
null,
null
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment