Postponed (maintainer needs more info)
Project:
Drupal core
Version:
main
Component:
datetime.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Aug 2016 at 08:12 UTC
Updated:
13 Oct 2025 at 16:26 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
dom. commentedAfter deeper code reading, it seems that #default_value can be added as a DrupalDateTime. This means for DX to first convert his wanted value to a DrupalDateTime before setting #default_value.
Thus issue is not actually a bug but more a new feature. So I updated issue summary consequently.
Comment #3
dom. commentedThe following patch tries to convert the string via user setted date_format and time_format to apply it to #default_value (jsut as it was with #value)
Comment #6
jhedstromThis would need some tests.
Comment #18
smustgrave commentedThank you for sharing your idea for improving Drupal.
We are working to decide if this proposal meets the Criteria for evaluating proposed changes. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or there is no community support. Your thoughts on this will allow a decision to be made.
Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.
Thanks!