Skip to content

Commit

Permalink
Fix rising calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
kunjara committed Mar 17, 2017
1 parent 1479af5 commit f0911fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ganita/Method/Swetest.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ private function formatRising($input, $graha)
];
}
$DateTime3 = new DateTime($dataRising[$graha][3]['rising']);
if ($DateTime == $DateTime3) {
if ($DateTime->format(Time::FORMAT_DATE) == $DateTime3->format(Time::FORMAT_DATE)) {
array_shift($dataRising[$graha]);
} else {
array_pop($dataRising[$graha]);
Expand Down

0 comments on commit f0911fb

Please sign in to comment.