OJS OCS OMP OHS

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
Developer Resources:

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome.

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?
JackyJ
 
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?

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 8470
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).
JackyJ
 
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 2 guests