Skip to content

Commit

Permalink
Use full date string for validity period.
Browse files Browse the repository at this point in the history
Fixes issue where final period could conflict with intial period's
key since the final period often has a validity time equal to the
current block's validity time.
  • Loading branch information
mrubinsk committed Aug 8, 2016
1 parent df6b2e0 commit b81293f
Showing 1 changed file with 6 additions and 1 deletion.
Expand Up @@ -885,7 +885,12 @@ protected function _parseTafData($data)
unset($tafCode['valid']);
// Now the groups will start, so initialize the time groups
$pointer['time'] = array();
$fromTime = $result[2] . ':00';
$time = new Horde_Date(array(
'year' => $year,
'month' => $month,
'mday' => $result[1],
'hour' => $result[2]));
$fromTime = (string)$time;
$pointer['time'][$fromTime] = array();
// Set pointer to the first timeperiod
$pointer = &$pointer['time'][$fromTime];
Expand Down

0 comments on commit b81293f

Please sign in to comment.