StaticJsCMS / static-cms

A Git-based CMS for Static Site Generators
https://staticcms.org
MIT License
580 stars 52 forks source link

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

Open dallyh opened 6 months ago

dallyh commented 6 months ago

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.