The daily node type displays an incorrect date when the story is published. The date is shown as:

, December 31, 1969

No matter what date is chosen for the node.

Comments

Frodo Looijaard’s picture

Assigned: Unassigned » Frodo Looijaard

I need some more information, as I can not reproduce it at the moment.

Did you run update from a 4.6.0 installation or is this a fresh 4.7.0 install? In the first case, did you run the database update script?

Are you running 4.7.0beta3 or an earlier version or current DRUPAL-4-7 CVS?

Can you explain step by step what you are doing?

Thank you,
  Frodo

jacobson’s picture

Frodo.

I upgraded from 4.6.5. I did run the update.php. I am running beta3.

All I do is create a daily item choosing a date in the future. I post the item. I get the bad date.

HAJ

Frodo Looijaard’s picture

Can you please run some queries on your database, presuming you have SQL access to it?

First determine the nid of daily item you created. You can see this in the URL when you select the node; for example, node/15 means nid 15.

Run the following queries, replacing %NID% by the just found nid:

    SELECT * FROM daily WHERE nid = %NID%
    SELECT * FROM node WHERE nid = %NID%

The first query will probably return 0 for the date field.

Thank you,
  Frodo

Frodo Looijaard’s picture

And yet another question: does this only happen for dates in the future, or for all dates?

Thanks,
  Frodo

jacobson’s picture

Frodo.

Did as you asked.

Query: SELECT * FROM daily WHERE nid = 1
Returns: nid 1 / date 20060122 / autopublish 1

Query: SELECT * FROM node WHERE nid = 1
Returns: 1 daily-daily SilverDeer Announces Launch of Rick Deckelbaum & A... 1 1 1137880755 1137946586 0 1 0 0 1

It doesn't matter what date I put in for the daily item -- past or future -- the same date is displayed -- ", December 31, 1969".

HAJ

jacobson’s picture

Another piece of information. I tried creating some new daily items today. I successfully created new events and a new news item, but none show up as records in the daily table.

Frodo Looijaard’s picture

For the moment, I have no idea where to look for the problem.

Some more questions/suggestions:

  • Please download the current version of the 4.7.0 daily module (there have been a few updates)
  • What version of PHP are you running?

  Frodo

jacobson’s picture

Frodo.

PHP version is 4.4.1. I will download the latest module and install. Thanks.

jacobson’s picture

Frodo.

I installed the latest update. No change in behavior. Still get the wrong date when the node is published. Here are some other observations that may help you.

+ THe published node doesn't display "News" in front of the date.
+ Although the date displays as December 31, 1969, the date that is shown if I try to edit the node is January 1, 1900.
+ If I correct the date and preview the node, the preview correctly shows "News, January 28, 2006", but when the item gets published, the date is incorrect again.

HAJ

jacobson’s picture

Frodo.

Another observation that may help.

+ I have a vocabulary that is associated with Daily nodes in addition to the "daily" vocabulary. The vocabulary is not required. When I create a new daily node, I choose "" for this vocabulary. When I edit the node, I have to set this vocabulary to "" again. The setting for this vocabulary is NOT remembered.

jacobson’s picture

Title: Incorrect Date Displayed » Problem Solved

Frodo.

I've solved the problem. I was missing the daily_random table. Upgrade from 4.6 to 4.7, and I bet 4.6 didn't have daily_random. I added the table, and now all works fine, except when editing a daily node, the "" assigned to my additional vocabulary still is not remembered. HAJ

Frodo Looijaard’s picture

Title: Problem Solved » Incorrect Date Displayed
Status: Active » Fixed

I presume you did not run update.php. If you did, and the daily_random table was not created, please reopen this or another issue.

Thanks,
  Frodo

Anonymous’s picture

Status: Fixed » Closed (fixed)