added the local time zone name next to the date field label
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
81
ui/dist/assets/index-22f_c49D.js
vendored
81
ui/dist/assets/index-22f_c49D.js
vendored
File diff suppressed because one or more lines are too long
81
ui/dist/assets/index-CDUQtXaP.js
vendored
Normal file
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
2
ui/dist/index.html
vendored
@@ -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>
|
||||
|
||||
@@ -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