Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have tried NOW, RELATIVE (now, + 1 day, etc) as default values.
also i have tried different widget.
also i have tried different admin themes (rubik, seven, garland).
the results is always the same:
default value doesnt work.
Comments
Comment #1
-Mania- CreditAttribution: -Mania- commentedI have the same problem. The date always defaults to the start date even though a specific relative default date is set.
Comment #2
webcultist CreditAttribution: webcultist commentedSame problem. On a nearly clean installation, just for some site buliding purposes, the default value doesn't work.
I also tried different date-field types, different widgets and different default values, also in the latest dev - it just keeps the empty input fields.
Comment #3
fb-multimediaSame problem.
Comment #4
mejdzer CreditAttribution: mejdzer commentedTry to set
#default_value
in this format:date('Y-m-d H:i:s', $your_optional_timestamp)
even if#date_format
is different.It worked for me.
Comment #5
kopeboy CreditAttribution: kopeboy commentedWhere to write that string??
Why shouldn't it work if set in Field UI when creating the field on the content type?
Comment #6
DamienMcKennaPlease try the latest -dev snapshot - does the problem persist?