Hello,
we defined a custom "Short" display format in "Date and Time", but this format is not used in the views output. Instead the predefined short is used.

CCK 6.x-2.0-rc7
Date 6.x-2.x-dev (22Sept)
Views 6.x-2.0-rc3

Comments

blackdog’s picture

I can confirm this issue, still exists in the latest dev.

I also seem to remember that one could choose a custom date format in Views before, but that is not possible in 6.x-2.x.dev. Perhaps I should post a new issue for that.

grendzy’s picture

Stuck on this too.
Date 6.x-2.0-rc3
CCK 6.x-2.0-rc10
Views 6.x-2.0-rc4

karens’s picture

Status: Active » Fixed

When you add a date field to the 'Fields' section of the view, you will see an option to select a format. It doesn't use the default format you set up in the field, it uses whatever you select in the view. This is exactly the same way every other CCK field works.

blackdog’s picture

The issue isn't about the default format you set for the field, it's that when you select for example 'Short' in the View, you'd expect the short format you've set in admin/settings/date-time, but it's not.

I have my short format set to display 'j M Y - H:i', but when I select the short format in the view, the date looks like YYYY-MM-DD H:i.

blackdog’s picture

FYI, when I set the correct format as the default for the field, and set it to use that in my View, it displays correctly.

blackdog’s picture

Status: Fixed » Active

updating status

karens’s picture

Status: Active » Fixed

CCK Date fields have their own 'Short' format, which you set up in the field settings. The view lets you choose from the formats you set up in the date. Go back and edit your field and you'll see you can create a default, 'Short', 'Medium', and 'Long' format for each date field (some of them are in a collapsed fieldset called 'Additional display settings'). This is much much more flexible than assuming that the system 'Short' format is always the right format. If you want your date field to use the system short format, you can set that up there.

This adds lots of flexibility to the date, since you won't necessarily want to display a birthday field the same as a node updated date (for the birthday you might display only the month and day, for the updated date you might want to see everything down to seconds.)

This is not a bug, this is the way the module is intended to work.

blackdog’s picture

Ok, I get this now. Perhaps there should be some sort of info text in the view to make users aware of how this works? When I see the 'Short' format, I assume it means the site's Short format, not Date's own Short format.

Now when I understand this, it's definately a powerful feature.

karens’s picture

I've added information about this to the Advanced help. If you use the Advanced help module you'll gets lot of additional documentation on Date, Calendar, CCK, and Views.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.