Downloads before upgrade are displayed as December 31, 1969, 5:33 pm
Downloads after upgrade are displayed as December 31, 1969, 5:00 pm
dl_time in database have accurate times and have this format: 2009-04-07 23:24:26
Downloads before upgrade are displayed as December 31, 1969, 5:33 pm
Downloads after upgrade are displayed as December 31, 1969, 5:00 pm
dl_time in database have accurate times and have this format: 2009-04-07 23:24:26
Comments
Comment #1
clarkburbidge commentedAfter some more investigation:
dl_time no longer gets the correct time with new downloads. The time entered into the DB is 0000-00-00 00:00:00.
I did some research on php.org and it looks like to get the date to display correctly the function strtotime() must be used on this line:
instead of this:
I'm sure there is something similar when the download time is entered into the DB, but I'm no PHP guru and am having a hard time locating the spot where that happens. Once I find it I'll have to do my usual guess at a change, save and fail method, so any help is appreciated.
I'm on:
drupal 6.12
php 5
mysql 5
Comment #2
clarkburbidge commentedMore playing around...
This sends 0000-00-00 00:00:00 to the DB:
but this at least gets the date part correct. The time remains 00:00:00:
Comment #3
jadowd commentedDid you download and install this prior to the last patch, or have you installed from the latest release?
Comment #4
clarkburbidge commentedI installed this module prior to the latest 6.x-1.1 version. Since the move to 6.x-1.1 I've been having the problems. Originally I had to manually install the database tables as they were not installed on initial installation.
I just tried a reinstall and there still does not seem to be automatic installation of the necessary database table.
The date issue remains.
Comment #5
clarkburbidge commentedBTW: I love this module! Thanks for the great work!!!
Comment #6
jadowd commentedOkay... sorry about the lateness on this. If the module is installed fresh, I think it will work for you... however, the issue is in the column type in the database. I will get an update to the module for you asap... hopefully by week's end.
Thanks,
Comment #7
modiphier commentedHi,
I just installed the latest release 6.x-9.x-dev (2010-Nov-12) and my time field is displayed as 1288981979 and the row Node is blank. I looked through the .module file for the code above and I dont even find it.
$time = date("F j, Y, g:i a", $data->dl_time );
the only line I find related to time is:
$today = date("m_j_Y_g_i");