Skip to content

Commit

Permalink
Fix reference to worksheet/cell collection from cell in isDateTime()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Baker committed Mar 20, 2013
1 parent 80e3c46 commit b42d4a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/PHPExcel/Shared/Date.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public static function FormattedPHPToExcel($year, $month, $day, $hours=0, $minut
*/
public static function isDateTime(PHPExcel_Cell $pCell) {
return self::isDateTimeFormat(
$pCell->getParent()->getStyle(
$pCell->getWorksheet()->getStyle(
$pCell->getCoordinate()
)->getNumberFormat()
);
Expand Down

0 comments on commit b42d4a3

Please sign in to comment.