Closed (fixed)
Project:
Announcements
Version:
6.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Nov 2008 at 01:23 UTC
Updated:
28 Nov 2008 at 16:32 UTC
In _announcements_unixtime2drupaldate, the time is decremented by the address of _announcements_get_timezone. It should be incremented by its return value:
function _announcements_unixtime2drupaldate($unixtime) {
// $unixtime -= _announcements_get_timezone;
$unixtime += _announcements_get_timezone(); /* BUG FIX */
return array('day' => gmdate('j', $unixtime),
'month' => gmdate('n', $unixtime),
'year' => gmdate('Y', $unixtime));
}
Comments
Comment #1
nancydruFix committed on both branches.