Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date CCK Field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Sep 2008 at 21:55 UTC
Updated:
31 Oct 2008 at 20:01 UTC
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
Comment #1
blackdog commentedI 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.
Comment #2
grendzy commentedStuck on this too.
Date 6.x-2.0-rc3
CCK 6.x-2.0-rc10
Views 6.x-2.0-rc4
Comment #3
karens commentedWhen 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.
Comment #4
blackdog commentedThe 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.
Comment #5
blackdog commentedFYI, when I set the correct format as the default for the field, and set it to use that in my View, it displays correctly.
Comment #6
blackdog commentedupdating status
Comment #7
karens commentedCCK 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.
Comment #8
blackdog commentedOk, 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.
Comment #9
karens commentedI'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.
Comment #10
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.