Needs work
Project:
Olivero
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 May 2021 at 17:05 UTC
Updated:
2 Oct 2026 at 10:14 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
adamps commentedComment #3
mohit.bansal623 commentedCan't we remove that piece of code which is formatting the date in olivero_preprocess_node.
Or we need to show that formatted date along with Quickedit working.
Comment #4
adamps commentedThis code is displaying the date with a particular format 'olivero_medium'.
Maybe a better way to do that is to alter the settings on the field formatter for the created field. Then it would get render correctly by the code in template_preprocess_node.
Comment #5
mohit.bansal623 commentedWhat is the requirement ?
To enable quickedit with the current date format the olivero theme is using
Comment #7
mohit.bansal623 commentedWe can create a custom field formatter despite of making changes in preprocess node as that is also blocking quickedit.
Please review.
Comment #8
mitthukumawat commented@mohit.bansal623
The idea above seems working fine.
After removing the dateFormatter from olivero_preprocess_node, the quickedit is able to update the date fields options as well.
By the way, I don't think it is necessary to update the node created field at all. As the node created and updated values in database are useful in case of tracking information of any nodes. Instead, after updating the node, the node created date could be replaced with node updated date.
Apart from above, if it is fine, the changes in merge request fixed this issue. Adding screenshot for reference.
Comment #9
marcusvsouza commentedThe commit in comment #6 works as expected, as the attached image shows.
Comment #10
manojithape commentedComment #11
manojithape commentedVerified and tested patch#6 MR !705 i.e. https://git.drupalcode.org/project/drupal/-/merge_requests/705.patch on the drupal 9.3.x-dev version and Olivero 9.3.0-dev version. Patch applied successfully and looks good to me.
Testing Steps:
Testing Results:
After applying the patch administrator user is able to change/edit the node date using the quick edit option.
Please refer attached Before patch sc and After patch sc images for reference.
Moving this ticket to RTBC.
Comment #12
gauravvvv commentedAfter saving changes of quick edit on the date field, the date field disappears after the patch.
Adding screen recording for reference.
Comment #13
manojithape commented@Gauravmahlawat : The issue which you mentioned in comment #12 not reproducible on my machine. I tested the same on Drupal 9.3.x-dev version. After saving changes of quick edit on the date field, that changes displayed and date field also displayed.
For reference, I attached a screen recording.
Please share the drupal version, so I can try to reproduce on that version.
Comment #14
gauravvvv commented@manojithape, I am using D9.3 on Chrome Version 90.0.4430.93 (Official Build) (x86_64)
Comment #15
alexpottThis code exists for a reason - and maybe the implementation is not correct but we should check with the Olivero maintainer before removing code.
Comment #16
mherchelYep! The code changes the date format for nodes. We need to ensure that this doesn't regress in any patches.

Comment #17
mherchelNote that Quickedit will be deprecated. See #3222947: Decide whether to move Quick Edit to contrib. We'll want to move any changes into their own stylesheet, so we can easily remove them if necessary.
Comment #18
xjmComment #22
adamps commentedUpdated the IS - I believe this is not only about quickedit.
Comment #23
adamps commentedWithout this, there aren't really any core themes available to test the node date field. This would be a problem, except that the testing (that I spent some time writing) seems to have been deleted from Core anyway see #3342700: Reinstate important testing NodeDisplayConfigurableTest - great work.
Comment #26
quietone commentedThe Olivero theme was approved for removal in #3590816: [policy, no patch] Deprecate Olivero and move to contrib.
This is Postponed. The status is set according to two policies. The Remove a core extension and move it to a contributed project and the Extensions approved for removal policies.
The deprecation work is in #3595082: [meta] Tasks to deprecate the Olivero theme and the removal work in #3595085: [meta] Tasks to remove the Olivero theme.
Comment #27
quietone commentedComment #28
quietone commented