Skip to content

Commit

Permalink
Fixes issue #9
Browse files Browse the repository at this point in the history
  • Loading branch information
cmen committed Dec 21, 2016
1 parent 110a172 commit 405e883
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion GoogleCharts/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ public function draw($dataName)
foreach ($row as $key => $value) {
if ($value instanceof \DateTime) {
$js .= 'new Date(' . $value->format('Y') . ', ' . ($value->format('n')-1) . ', ' .
$value->format('d') . ')';
$value->format('d') . ', '. $value->format('H') .', '. $value->format('i').', '.
$value->format('s') .')';
} else {
$js .= json_encode($value);
}
Expand Down

0 comments on commit 405e883

Please sign in to comment.