-
-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Date field saving format issue in blueprint #5919
Comments
This is because the YAML syntax treats the Y as a boolean ("yes") and converts it to
I can reproduce this part. If I use the field configuration you posted, the Panel cannot parse the value. For example if I store @distantnative Back when you worked on the refactoring, we discussed deprecating the @ment4list There are two possible solutions for your use case:
|
We talked about deprecating |
|
Ah, right. I remember the decision to use the communication format. I haven't actually checked what the backend sends to be honest. I can only see the Panel displays |
I have chosen to use the number field for my use case which is sufficient. Thanks for the help. |
Thanks for your feedback, good to hear the workaround works for you. I'm still reopening this issue because of the bug in the date field. |
@lukasbestle stumbled upon this issue - shouldn't this be in the |
Good find. Weird that we haven't transferred it before. I've tried to reproduce the issue again with v4 beta 3. Current behavior is:
The issue is caused by the field backend. The Fiber data contains the field value as |
With a blueprint like this:
Expectation
What I expect to see is only the year part of the date being saved.
Actual result
It saves correctly to the page's content file but when the page is re-opened in the panel, the date is not the saved year.
If format is simply changed to
Y
(without quotes), the digit1
is stored in the content file.If the format is
Ymd
, it works. It saves the year, month, and date.The text was updated successfully, but these errors were encountered: