You are viewing the PKP Support Forum | PKP Home Wiki

Changing review due date bug

Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
What to do if you have a technical problem with OJS:

1. Search the forum. You can do this from the Advanced Search Page or from our Google Custom Search, which will search the entire PKP site. If you are encountering an error, we especially recommend searching the forum for said error.

2. Check the FAQ to see if your question or error has already been resolved.

3. Post a question, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a development question, try the OJS Development subforum.

Changing review due date bug

Postby ppdm2 » Tue Dec 19, 2006 6:36 am

Hello everybody,

I have discovered a problem in changing the review due date. The formula which determines if a date is AFTER today is not correct if we want to enter a date corresponding to a next year day.

In the file classes>submission>sectionEditor>sectionEditorAction.inc.php we can find :
Code: Select all
   if ($dueDateParts[0] >= $today['year'] && ($dueDateParts[1] > $today['mon'] || ($dueDateParts[1] == $today['mon'] && $dueDateParts[2] >= $today['mday']))) {

I propose this formula :
Code: Select all
   if (($dueDateParts[0] > $today['year']) || ($dueDateParts[0] == $today['year'] && ($dueDateParts[1] > $today['mon'] || ($dueDateParts[1] == $today['mon'] && $dueDateParts[2] >= $today['mday'])))) {

PS : sorry for my poor english, I hope you understand.
Posts: 4
Joined: Thu May 04, 2006 4:54 am

Return to OJS Technical Support

Who is online

Users browsing this forum: No registered users and 2 guests