Closed (fixed)
Project:
Date
Version:
4.7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
12 Sep 2006 at 02:06 UTC
Updated:
9 Oct 2006 at 22:01 UTC
If you use the Granularity widgets so that you only enter a year, it won't actually record the year and 1970-01-01T04:00:00 is recorded into the database. If you click the widgets back on for "month" and "day" fields then it will actually record the year. If you're only inputing a year and showing a year, you don't want the other select boxes shown just to get a valid input. Can't we default to something?
Comments
Comment #1
karens commentedThis turned out to be very hard to pin down. Turned out to be a problem where it tries to do a timezone conversion on the year-only date which turns no unix date (the right value) into a unix date with a value of the timezone offset, and the unix value of the timezone offset is the first day of the 1970 or the last day of 1969.
Should be fixed in latest commit (both cvs and 4.7).
Comment #2
mwu commentedI've installed date module.
I'm checking it's validation process.
If I put in a date without a time, such as 2006-10-11,
it fills in a time for me
in my case it put in T06:00:00.
This is the incorrect time.
also, I am not familiar with this T notation. I would like to take it out.
Can we have time without seconds? 1:00 is fine for me. I don't really want 1:00:00.
Comment #3
karens commented@mariun -- the issue this was created for, not saving a field that only has a year, is fixed, so I'm re-marking it as fixed. You are referring to something different, which is addressed in http://drupal.org/node/84492 and is only partially fixed right now. The 'T00:00:00' is part of the ISO format and must be in there (read the help text for the date module at admin/help for more info about format options.)
Comment #4
karens commentedAlso, just to clarify, the ISO date will save something like 2006-01-01T00:00:00 but that is just the way the value is saved in the database. You can display it without time by using the blank option for time display when you create/edit the field.
Comment #5
(not verified) commented