Doesn't work with Datestamp

Bevan - September 24, 2007 - 09:40
Project:Views 'Group-By' Pack
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I was checking this out. We need something similar, but group by day, not month. It didn't work until I changed

<?php
    $year 
= date('Y', strtotime($val));
   
$month = date('F', strtotime($val));
?>

to
<?
$year = date('Y', $val);
$month = date('F', $val);
?>

I think you have written this module to use Date fields, and not datestamp fields, which are also available through the date field module. This could be easily checked with is_numeric($val).

#1

linuxbox - March 24, 2008 - 15:36
Status:active» fixed

This is finally fixed in version 1.3. It now supports both date fields and datestamp ones.

#2

Anonymous (not verified) - April 7, 2008 - 15:42
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.