referenced from w3ctag-review
- Has TC39 thought about
HTMLTimeElement
integration? Or how this can work with<input type="time">
?
according to MDN, the input-values would be [1], [2]:
<!-- date --> <input id="date" type="date" value="2017-06-01"> <!-- time --> <input id="time" type="time" value="13:30">
what would UX-workflow integration look like? how would i use temporals to transform <input type="date">, <input type="time">
into JSONdatetime_utc, timezoneOffset
?
var datetime_local; var datetime_utc; var timezoneOffset; datetime_local = CivilDateTime.fromString( document.querySelector("#date").value + "T" + document.querySelector("#time").value ); timezoneOffset = ??? // new Date().getTimezoneOffset() datetime_utc = ??? // JSON.stringify(new Date(datetime_local)) ajax({ "method": "POST", "url": "/api/schedule-appointment", "payload": JSON.stringify({ datetime_utc: datetime_utc, timezoneOffset: timezoneOffset, ... }) });
[1] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/date
[2] https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/time
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4