added the local time zone name next to the date field label
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
const tzName = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
||||
|
||||
// {
|
||||
// collection: undefined,
|
||||
// originalRecord: undefined,
|
||||
@@ -14,7 +16,7 @@ export function input(props) {
|
||||
t.label(
|
||||
{ htmlFor: uniqueId },
|
||||
t.i({ className: app.fieldTypes.date.icon, ariaHidden: true }),
|
||||
t.span({ className: "txt" }, () => props.field.name),
|
||||
t.span({ className: "txt" }, () => props.field.name, " (", tzName, ")"),
|
||||
),
|
||||
t.input({
|
||||
id: uniqueId,
|
||||
|
||||
Reference in New Issue
Block a user