[Vtigercrm-commits] [vtiger-commits] r4029 - /vtigercrm/trunk/include/utils/utils.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed Mar 1 08:19:32 EST 2006


Author: saraj
Date: Wed Mar  1 06:19:28 2006
New Revision: 4029

Log:
bug fixed in start_end_dates for dashboard

Modified:
    vtigercrm/trunk/include/utils/utils.php

Modified: vtigercrm/trunk/include/utils/utils.php
==============================================================================
--- vtigercrm/trunk/include/utils/utils.php (original)
+++ vtigercrm/trunk/include/utils/utils.php Wed Mar  1 06:19:28 2006
@@ -1842,7 +1842,7 @@
         }
         else if($period=="tmon")
         {
-		  $st_date=date("Y-m-d",mktime(0,0,0,date("n"),date("1"),date("Y")));
+		/*$st_date=date("Y-m-d",mktime(0,0,0,date("n"),date("1"),date("Y")));
                 $end_date=date("Y-m-d",mktime(0,0,0,date("n"),date("j")+1,date("Y")));
                 $period_type="month";
                 $width="840";
@@ -1851,7 +1851,10 @@
                 {
                         $st_date=date("Y-m-d",mktime(0,0,0,date("n")-1,date("1"),date("Y")));
                         $end_date = date("Y-m-d",mktime(0, 0, 1, date("n"), 0,date("Y")));
-                }
+                }*/
+		$period_type="month";
+		$width="840";
+		$st_date = date("Y-m-d",mktime(0, 0, 0, date("m"), "01",   date("Y")));							     $end_date = date("Y-m-t");
 
         }
         else if($period=="lmon")





More information about the vtigercrm-commits mailing list