You are viewing the PKP Support Forum | PKP Home Wiki

indexing dates before 1901

Open Harvester Systems support questions and answers, bug reports, and development issues.

Moderators: jmacgreg, michael, John

Forum rules
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca

This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.

indexing dates before 1901

Postby JackyJ » Fri Oct 02, 2009 1:34 pm

So i'm running into problems with records that have dates before 1901. This is because the harvester uses strtotime, which uses a unix timestamp. We have several records that are in the 1800's. I noticed there are a number of functions with an adodb_ prefix in front of them that fixed the default php date functions, but there wasn't one for strtotime, which is used for parseDate() inside SchemaPlugin.inc.php.

Anyone else run into this problem?
Posts: 2
Joined: Fri Oct 02, 2009 1:23 pm

Re: indexing dates before 1901

Postby asmecher » Tue Oct 06, 2009 6:53 pm

Hi JackyJ,

There's no equivalent for the strtotime function because that function converts into a format that can't represent anything before 1970. I haven't tried the harvester with anything before then -- could you describe how far you're getting with it?

Alec Smecher
Public Knowledge Project Team
Posts: 10015
Joined: Wed Aug 10, 2005 12:56 pm

Re: indexing dates before 1901

Postby JackyJ » Thu Oct 15, 2009 12:23 pm

I haven't look into it too much, but i think if we had a strtotime_largerange type of function then that would be the last missing piece of the puzzle. Everywhere else in the code it seems to have support for the large date range (as well as in the mysql database schema).
Posts: 2
Joined: Fri Oct 02, 2009 1:23 pm

Return to Open Harvester Systems Support and Development

Who is online

Users browsing this forum: No registered users and 1 guest