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
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.

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
where it says
$fromDate = mktime(0, 0, 1, 1, 1, $statisticsYear);
it should say
$fromDate = mktime(0, 0, 0, 1, 1, $statisticsYear);

Best regards,
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.

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

Return to OJS Development

Who is online

Users browsing this forum: No registered users and 2 guests