added the local time zone name next to the date field label

This commit is contained in:
Gani Georgiev
2026-04-27 22:38:27 +03:00
parent 602f3a4442
commit 905256b0c8
5 changed files with 87 additions and 83 deletions

View File

@@ -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,