Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Show today marker even after last task

When $today is after last task but before end of last shown month, the
marker had not been shown.
  • Loading branch information...
commit d9e9039518bdc18dfcc8b80ddce70f47449fc887 1 parent f1a2aab
@cycloon cycloon authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/gantti.php
View
2  lib/gantti.php
@@ -162,7 +162,7 @@ function render() {
$offset = (($today->timestamp - $this->first->month()->timestamp) / $this->seconds);
$left = round($offset * $this->options['cellwidth']) + round(($this->options['cellwidth'] / 2) - 1);
- if($today->timestamp > $this->first->timestamp && $today->timestamp < $this->last->timestamp) {
+ if($today->timestamp > $this->first->month()->firstDay()->timestamp && $today->timestamp < $this->last->month()->lastDay()->timestamp) {
$html[] = '<time style="top: ' . ($this->options['cellheight'] * 2) . 'px; left: ' . $left . 'px" datetime="' . $today->format('Y-m-d') . '">Today</time>';
}
Please sign in to comment.
Something went wrong with that request. Please try again.