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?

CommentFileSizeAuthor
#5 898896.patch926 bytesstella

Comments

Renee S’s picture

Ditto, any field that has more than one instance, or is set to "unlimited", shows up formatted.

Renee S’s picture

Category: feature » bug
Renee S’s picture

Title: Fields set to > 1 format with markup » CCK Date field formatting for OAI2

Related to this: #465326: content_format() does not handle multiple values correctly - content_format doesn't handle multiple values correctly.

Renee S’s picture

Title: CCK Date field formatting for OAI2 » Fields set to > 1 format with markup

(changing the title to make this more precise)

stella’s picture

Title: CCK Date field formatting for OAI2 » Fields set to > 1 format with markup
Status: Active » Needs review
StatusFileSize
new926 bytes

Hmmm 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.

Renee S’s picture

@stella Thanks, I will give this a try!

DnaX’s picture

It work for me.

DnaX’s picture

Status: Needs review » Fixed
DnaX’s picture

Status: Fixed » Closed (fixed)