I created a CCK field of type "Date," which I'm assuming corresponds to "ISO Date" in the documentation, and which supposedly has the following advantage: "You can use it for incomplete dates, i.e. only a year or only a year and a month, and pad the other values with zeros, so it does not appear to be any more precise than it really is."
I have set the granularity to Year, Month, Day. I am creating a timeline (using the timeline module) that may contain events that occurred, for example, on 16 December 1926, or in December 1926, or in 1926. But if I try to create a date such as December 1926, it always defaults to 1 December 1926! If I put a 0 in the day field and submit, it still converts that to a 1.
How can I create dates of varying granularity?
Comments
Comment #1
pathscollide commentedSorry, I forgot to mention, FWIW, this happens with either Select or Text; I'm using "No timezone conversion"; the site timezone is Europe/Paris; I'm not using the multiple or required options.
Comment #2
karens commentedWell, the problem is it was storing the date right, then displaying it as though the missing item was wrong. I dug through the code and found couple fixes to make sure items not in the granularity array get stripped out of both the stored date and the format strings.
Comment #3
(not verified) commented