OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Bug: Wrong dates in statistics (patch)

OJS development discussion, enhancement requests, third-party patches and plug-ins.

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

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

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, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Bug: Wrong dates in statistics (patch)

Postby joaquim » Sat Sep 29, 2007 4:37 am

If you have the missfortune to publish some issue on the first second 00:00:00 of any year
it is not computed in the statistics page in any year. This is not so unlikely if one is making up the dates. The wrong code is in
pages/manager/StatisticsHandler.inc.php
where it says
$fromDate = mktime(0, 0, 1, 1, 1, $statisticsYear);
it should say
$fromDate = mktime(0, 0, 0, 1, 1, $statisticsYear);

Best regards,
Joaquim
joaquim
 
Posts: 17
Joined: Sat Apr 28, 2007 12:26 am
Location: Barcelona

Re: Bug: Wrong dates in statistics (patch)

Postby asmecher » Sat Sep 29, 2007 10:36 am

Hi Joaquim,

Thanks -- there's a patch at http://pkp.sfu.ca/bugzilla/show_bug.cgi?id=3017. There was also a second place in the code that this had to be changed.

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


Return to OJS Development

Who is online

Users browsing this forum: No registered users and 1 guest