Closed (fixed)
Project:
Date
Version:
6.x-2.x-dev
Component:
Date CCK Field
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2009 at 16:06 UTC
Updated:
10 Mar 2009 at 21:00 UTC
Minor one here, but...
Create a CCK field, add a filter for it, set the input type to "Select", set the default "from" value to "now", default "to" value to "Now +7 days", set the view type to Page, click save, click "view page".
The select boxes are set to:
From date:
Year: -Year
Date: February
Day: 2
To date:
Year: -Year
Date: February
Day: 2
Reproduced in 6.x-2.0-rc6 (on Linux) and 6.x-2.x-dev 2009-Feb-18 (on WinXP).
My suspicion: since "day" is set to "2", I'm guessing at a cut-n-paste bug, using the month number (feb=2?) for all six fields? Would explain the "-Year" value too, since the year 0002 isn't in the select list, so doesn't get selected.
Comments
Comment #1
Dewi Morgan commentedRaised severity: I'd forgotten that in the current release (6.x-2.0-rc6), select is the ONLY option available: the nicer options are only in head.
If you've got 6.x-2.x-dev, you can avoid the issue by selecting a different date form type, but you can't in 6.x-2.0-rc6.
Comment #2
karens commentedI cannot replicate this in the -dev version. The rc6 version is older code and fixes go into -dev, so knowing whether it was broken in rc6 is not helpful. Make sure you really have the very latest -dev code. If you can replicate this in the latest code, there is something else going on, maybe some odd setting in your field or your view, but I can't tell anything from this report about how you set up either the field or the view. If it is still a problem in the latest -dev I need a lot more information.
Comment #3
Dewi Morgan commentedI tested using 6.x-2.x-dev 2009-Feb-18, which was current when I posted. Setup is as described at: http://drupal.org/node/376224
Just tested using 6.x-2.x-dev 2009-Feb-24: could not reproduce.
Will keep an eye out for it, but will assume that it was either me being stupid (not unusual, but I can't figure out how to make that happen even if I was trying), or it's been fixed en passant.