[New Cap] Timezone control #728
Locked
depau
announced in
zzz_Archive
Replies: 1 comment 4 replies
-
My plan was to not have any timezone control and instead use UTC on the robot + design all APIs to expect and return timestamps as UTC. The front-end can then do timezone conversion based on the user locale. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Starting the discussion here first to properly follow the new process.
JS
class TimezoneControlCapability
getTimezone() -> number
(offset to UTC)setTimezone(number)
REST
GET /
-> timezone offset as a valid JSON numberPUT /
body{"action": "set", "timezone": number}
Using offsets and not human readable time zone strings such as
Europe/London
to keep the code simple. Though conversion back and forth should be just a matter of including a mapping somewhere in the code, if desired.Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions