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 am using the CCK Date module's field to populate dc:date. The CCK Field returns <span class="date-display-single">Saturday, January 1, 1966</span>
. How can I change this module to retrieve a DateTime formatted value?
Comment | File | Size | Author |
---|---|---|---|
#5 | 898896.patch | 926 bytes | stella |
Comments
Comment #1
Renee S CreditAttribution: Renee S commentedDitto, any field that has more than one instance, or is set to "unlimited", shows up formatted.
Comment #2
Renee S CreditAttribution: Renee S commentedComment #3
Renee S CreditAttribution: Renee S commentedRelated to this: #465326: content_format() does not handle multiple values correctly - content_format doesn't handle multiple values correctly.
Comment #4
Renee S CreditAttribution: Renee S commented(changing the title to make this more precise)
Comment #5
stella CreditAttribution: stella commentedHmmm well it looks like the
content_format()
issue is fixed. It certainly doesn't happen for my multi-value fields. However, I do have problems with date and link fields. The attached patch implements a solution to help fix this.Comment #6
Renee S CreditAttribution: Renee S commented@stella Thanks, I will give this a try!
Comment #7
DnaX CreditAttribution: DnaX commentedIt work for me.
Comment #8
DnaX CreditAttribution: DnaX commentedFixed in Git repository: http://drupalcode.org/project/oai2forcck.git/commit/555c522e21950ae2e4df...
Comment #9
DnaX CreditAttribution: DnaX commented