StaticJsCMS / static-cms

A Git-based CMS for Static Site Generators

Home Page:https://staticjscms.netlify.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

dallyh opened this issue · comments

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.