while testing the last date CVS module version (Sep/09/2006), I noticed that on preview the date field doesn't show and when viewing the node it always display the first day of the current year (ie. Sunday Jan 01 2006).
In the database it always store the default value: 0001-01-01T00:00:00
Don't know if this depends from my enviroment (I'm using php 4 mysql 5 on the AMP platform on a mac).
Is anyone experiencing this too?

CommentFileSizeAuthor
#6 date.png8.27 KBdodorama

Comments

dodorama’s picture

I'm using date cvs version with drupal 4.7.3 . Is this correct ?

karens’s picture

If you're using a version with Sept 9 as a date you don't have the latest version. You should start using the 4.7 version with the 4.7 version of cck an drupal 4.7x. The cvs and 4.7 version are going to start splitting off in different directions.

I haven't tested the preview lately, so I will take another look at that.

dodorama’s picture

Sorry Karen. I meant 29 sept version.
And the problem I'm experiencing isn't releated just to the preview but it seems that the same default value is stored whatever date I submit.
So when I view the node the date field always show the first day of the current year.
But since my drupal install is a little bit messy I'll perform a fresh install a see if the problem still exist.

karens’s picture

I've been using this without any problems, so I can't replicate it. If you still have a problem after reinstalling, please give me some info to help me reproduce the problem. I need:

1) the type of date field (iso or timestamp)
2) the type of widget (selector, jscalendar, or text)
3) the timezone option you are using
4) the granularity you are using

karens’s picture

Oh, and whether you have selected multiple values or required.

dodorama’s picture

StatusFileSize
new8.27 KB

Fresh install:
drupal 4.7.3
cck 4.7.0 (sept 19)
date 4.7.0 ( I downloaded 10 minutes ago all the single files tagged 4.7 from the CVS repository)
created a new content type with:
a date type select list ( granularity set to YMDHM, didn't change site timezone and timezone settings time. date display set to 01/08/2006)
a datestamp type select list (almost the same)
a date type Text Field with strtotime validation (almost the same)

I didn't selected the required and multiple values checkbox.

this is what happens:
1. On submission;

when enabling the date type Text Field with strtotime validation a lot of warnings appear (see screenshot) and the date textfield is empty (the current date isn't displayed)

2. On preview

None of the Values are displayed

3. On node view

date type select list value is reset to first day of the current year (01/01/2006 00:00)
datestamp type select list value is always 01/01/1970 00:00
a date type Text Field with strtotime validation is empty

I will perform further testing tomorrow once the 4.7.0 package will be avaiable and updated with your last commites (just to be sure that I didn't mess things up by downloading files one by one directly from the repository)

Hope this helps

karens’s picture

May be related to http://drupal.org/node/86762, maybe something bad in latest commit. I'm trying it in several installations to see if I can reproduce the error and fix it. Just sit tight, hopefully it will be fixed soon...

karens’s picture

Please try something else for me. Go to settings > content > content types and pull up the content type in question. Select the date field you're having trouble with and make sure it is set up right. Save the field even if you don't make any changes to it. Then go back and see if you can create a new node of that type OK. If that works, pull up a previously-created node and see if that works.

karens’s picture

Status: Active » Fixed

I think I found the problem. Grab the latest version of date.module and it (hopefully) will be fixed.

catch’s picture

I've tried:

1) the type of date field (iso or timestamp)

have tried both

2) the type of widget (selector, jscalendar, or text)
tried selector and text

3) the timezone option you are using
GMT or none.

4) the granularity you are using

ddmm
or
ddmmyyyy

tried editing field and saving etc., same error.

dodorama’s picture

Status: Fixed » Active

not sure what 'pull up' means in this case (sorry i'm italian).
anyway what I did is saving both the content type and the field type again (even if I didn't make any changes).
But the results are the same.
Trying to investigate where's the problem I tested the 4.7 module from Sept. 18 and it works fine. So it's something releated with the last commits.

catch’s picture

sorry Karen - latest 4.7.0 (which still says 18/09) or latest cvs?

dodorama’s picture

Grabbed latest date.module and....
it works!

Thanks Karen!

I will perform further testing on the module trying all the new features and let you know.

@catch

You have to wait till tomorrow to see the packaged (and updated) 4.7 version of the module on the download page. In the meanwhile you can grab all the needed files one by one from the repository.

karens’s picture

You'll have to get it from the cvs repository since I just committed it and the download won't get updated right away. The correct version will have today's date on it.

Don't worry about my previous comment about pulling it up (I just meant look at it). Just make sure you have the right version of the module and confirm whether things are working.

karens’s picture

Status: Active » Fixed

Should be fixed in yesterday's commit.

Anonymous’s picture

Status: Fixed » Closed (fixed)