Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

DateTime field with i18n - the value displayed in the UI is wrong when i18n is set to duplicate #1052

Open
dallyh opened this issue Jan 4, 2024 · 0 comments
Labels
bug Something isn't working i18n widgets
Milestone

Comments

@dallyh
Copy link

dallyh commented Jan 4, 2024

Hello,

as the title says (this again might be just an UI thing), when there is a field set up for a collection like this:

{
          "name": "pubDateTime",
          "label": "Publish Date",
          "widget": "datetime",
          "i18n": "duplicate",
          "date_format": true,
          "time_format": true
},

Then, when creating a new entry in the UI the field's value is in the other locale (not default locale) is not set (or it looks like it - screenshot taken from split view i18n side by side):

image

Also when I turn off i18n side by side, this happens (mask is displayed):
image

Then when I switch back, both fields are displaying the mask:
image

The actualy value is saved into the entry (file) even though in the UI it looks different:
image

Started happening on version 4.0.0.

@KaneFreeman KaneFreeman added bug Something isn't working widgets i18n labels Apr 26, 2024
@KaneFreeman KaneFreeman added this to the 4.x milestone Apr 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working i18n widgets
Projects
None yet
Development

No branches or pull requests

2 participants