Using a date field, with timestamp, in CCK nodes, and dates aer not stored in the database.
It can be that one of the other modules cause this behaviour, such as pageroute, and for that reason I am searching for the cause of this.
However, creating a node, nor updating it, stores the date in the database.

Comments

karens’s picture

This is very odd. I have no problems getting the date stored so I can't replicate this. Keep me posted as you dig into this, or let me know if there's anything specific you want me to do. I have not tried to use pageroute, so I know nothing about it. I have used CCK, Views, Event, Location, Javascript Tools, Gallery, OG, GMap, Fieldgroup, Imagefield, Imagecache, and Image along with Date with no problems so far.

Anonymous’s picture

Version: 4.7.x-1.0 » 5.x-1.x-dev

I have the same issue, but don't have pageroute installed. My modules are: CCK, Views and Pathauto. I'm using date 5.x-1.x-dev, because there is an error on 5.x-1.0-beta.

karens’s picture

Can both of you tell me what kind of date you are trying to create? I need to know:

1) Field type (date or datestamp)
2) Widget type (select, jscalendar, or text)
3) Granularity
4) Timezone option

karens’s picture

Oh, and also:

5) Required or not?
6) Multiple or not?

m3avrck’s picture

Karen, this bug only occurs when you use the select widget type.

Datetimes are correctly stored when you use a textfield with strtotime(). Sorry don't have any more time to debug this :-)

karens’s picture

Thanks m3avrck, that gives me something to work with. I'll see if I can figure out what's going on here.

Anonymous’s picture

Hello,
1) Datestamp
2) Select
3) Year/Month/Day
4) GMT
5) Not required
6) Not Multiple

Hope this help

karens’s picture

Status: Active » Patch (to be ported)

Found it and committed a fix to all branches. It was only affecting timestamp fields that used the drop-down selector, all other combinations worked right, so that's why I had trouble being able to recreate the problem.

Thanks, the info you provided helped me crack this problem!

karens’s picture

Status: Patch (to be ported) » Fixed

Hit the wrong status item...

Anonymous’s picture

Thanks to you for this great module! ;-)

Anonymous’s picture

Status: Fixed » Closed (fixed)