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

@@ -2,6 +2,8 @@
- Fixed password fields not being detected as changed ([#7670](https://github.com/pocketbase/pocketbase/issues/7670)).
- Added the local time zone name next to the `date` field label.
## v0.37.4

File diff suppressed because one or more lines are too long

81
ui/dist/assets/index-CDUQtXaP.js vendored Normal file

File diff suppressed because one or more lines are too long

2
ui/dist/index.html vendored
View File

@@ -13,7 +13,7 @@
<!-- prism -->
<script src="./libs/prism/prism.js" data-manual></script>
<script type="module" crossorigin src="./assets/index-22f_c49D.js"></script>
<script type="module" crossorigin src="./assets/index-CDUQtXaP.js"></script>
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
<link rel="stylesheet" crossorigin href="./assets/index-ouas71Vg.css">
</head>

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,