phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] CVS: calendar/inc class.holidaycalc_JP.inc.php,1.1,1.


From: Mark A Peters <address@hidden>
Subject: [Phpgroupware-cvs] CVS: calendar/inc class.holidaycalc_JP.inc.php,1.1,1.2 class.holidaycalc_US.inc.php,1.6,1.7
Date: Tue, 16 Apr 2002 11:46:03 -0400

Update of /cvsroot/phpgroupware/calendar/inc
In directory subversions:/tmp/cvs-serv26320/calendar/inc

Modified Files:
        class.holidaycalc_JP.inc.php class.holidaycalc_US.inc.php 
Log Message:
This part of a major fix for the calendar.

Index: class.holidaycalc_JP.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.holidaycalc_JP.inc.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** class.holidaycalc_JP.inc.php        19 Jun 2001 00:44:04 -0000      1.1
--- class.holidaycalc_JP.inc.php        16 Apr 2002 15:46:01 -0000      1.2
***************
*** 93,102 ****
                                $holidays[$i]['occurence'] = 
$holiday['occurence'];
                                $holidays[$i]['dow'] = $holiday['dow'];
!                               $holidays[$i]['date'] = 
mktime(0,0,0,$holiday['month'],$day+1,$year) - $datetime->tz_offset;
                                $holidays[$i]['obervance_rule'] = 0;
                        }
                }
  
!               $date = mktime(0,0,0,$holiday['month'],$day,$year) - 
$datetime->tz_offset;
  
                return $date;
--- 93,102 ----
                                $holidays[$i]['occurence'] = 
$holiday['occurence'];
                                $holidays[$i]['dow'] = $holiday['dow'];
!                               $holidays[$i]['date'] = 
mktime(0,0,0,$holiday['month'],$day+1,$year);
                                $holidays[$i]['obervance_rule'] = 0;
                        }
                }
  
!               $date = mktime(0,0,0,$holiday['month'],$day,$year);
  
                return $date;

Index: class.holidaycalc_US.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.holidaycalc_US.inc.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** class.holidaycalc_US.inc.php        20 Feb 2002 02:01:55 -0000      1.6
--- class.holidaycalc_US.inc.php        16 Apr 2002 15:46:01 -0000      1.7
***************
*** 61,65 ****
                                        $holidays[$i]['occurence'] = 
$holiday['occurence'];
                                        $holidays[$i]['dow'] = $holiday['dow'];
!                                       $holidays[$i]['date'] = 
mktime(0,0,0,$holiday['month'],$day+1,$year) - $datetime->tz_offset;
                                        $holidays[$i]['obervance_rule'] = 0;
                                }
--- 61,65 ----
                                        $holidays[$i]['occurence'] = 
$holiday['occurence'];
                                        $holidays[$i]['dow'] = $holiday['dow'];
!                                       $holidays[$i]['date'] = 
mktime(0,0,0,$holiday['month'],$day+1,$year);
                                        $holidays[$i]['obervance_rule'] = 0;
                                }
***************
*** 73,82 ****
                                        $holidays[$i]['occurence'] = 
$holiday['occurence'];
                                        $holidays[$i]['dow'] = $holiday['dow'];
!                                       $holidays[$i]['date'] = 
mktime(0,0,0,$holiday['month'],$day-1,$year) - $datetime->tz_offset;
                                        $holidays[$i]['obervance_rule'] = 0;
                                }
                        }
                }
!               $date = mktime(0,0,0,$holiday['month'],$day,$year) - 
$datetime->tz_offset;
  
                return $date;
--- 73,82 ----
                                        $holidays[$i]['occurence'] = 
$holiday['occurence'];
                                        $holidays[$i]['dow'] = $holiday['dow'];
!                                       $holidays[$i]['date'] = 
mktime(0,0,0,$holiday['month'],$day-1,$year);
                                        $holidays[$i]['obervance_rule'] = 0;
                                }
                        }
                }
!               $date = mktime(0,0,0,$holiday['month'],$day,$year);
  
                return $date;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]