phpgroupware-tracker
[Top][All Lists]
Advanced

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

[Phpgroupware-tracker] [Bug #927] Daylight saving - calendar day shift


From: nobody
Subject: [Phpgroupware-tracker] [Bug #927] Daylight saving - calendar day shift
Date: Sun, 29 Sep 2002 21:58:14 -0400

=================== BUG #927: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=927&group_id=509

Changes by: Dave Hall <address@hidden>
Date: 2002-Sep-30 11:58 (Australia/Melbourne)

------------------ Additional Follow-up Comments ----------------------------
Sorry the defined responses are a bit problematic.  It is *now* fixed in cvs.  
Please run the following:

cd /path/to/phpgroupware
cvs -z3 update -Pd

Cheers



=================== BUG #927: FULL BUG SNAPSHOT ===================


Submitted by: youki                     Project: phpGroupWare                   
Submitted on: 2002-Aug-01 00:37
Category:  API - phpGWapi               Bug Group:  None                        
Severity:  5 - Major                    Priority:  Normal                       
Resolution:  Fixed                      Assigned to:  None                      
Status:  Closed                         Component Version:  None                
Platform Version:  None                 Reproducibility:  Every Time            

Summary:  Daylight saving - calendar day shift

Original Submission:  Hello,

I've the following problem :
in October there is a day that is repeated : on my installation (0.9.14RC4, 
Mysql, Win Nt4 or Mandrake 8.2 and I'm from France (tz_offset=0) in October 
2002 there are two 27th. (sunday 27th and monday 27th)
Because of these two days, the rest of the days of the month are shifted (the 
28th is not a monday but a tuesday...).
This is also true in 2003, etc... with other days

I've tried to catch out what is happening :
I've understood that the calendar is constructed with the first day of the 
month. Then the first day of each week is constructed by adding 3600*24*7 to 
the timestamp of the first day of the month or of the precedent week.
But in October, on my installation :
time stamp of 10-21-2002:00-00 is 1035151200 
if you add 3600*24*7 to this timestamp you get 1035756000.
But if you try this :
echo date(m-d-Y:H-i,1035756000) you get 10-27-2002:23-00
That's why we've got to 27th October.

I think this is due to the daylight saving time.
The last sunday of October of each year (the 27th in 2002), we are going back 
in the past of one hour.

I don't exactly know what exact influence it has an the other modules of 
phpgroupware.

But DST is something that is not a standard : every country has it's own rules 
of DST changing date. That's why this problem should be solved in the pref or 
admin. 
(have a look at http://www.timeanddate.com/time/aboutdst.html)

I didn't find how to solve that particular problem for the moment, but as other 
modules can be concerned by this pb, I posted this bug whith the category 
phpGWapi.

If you need any other information, or if I'm completly wrong feel free to 
contact me by email (address@hidden)

Hope this helps

Nicolas Reignier 

Follow-up Comments
*******************

-------------------------------------------------------
Date: 2002-Sep-30 11:58             By: skwashd
Sorry the defined responses are a bit problematic.  It is *now* fixed in cvs.  
Please run the following:

cd /path/to/phpgroupware
cvs -z3 update -Pd

Cheers

-------------------------------------------------------
Date: 2002-Sep-30 11:06             By: skwashd
This has been fixed in CVS and should be available in the next
release.

-------------------------------------------------------
Date: 2002-Sep-29 18:14             By: pauldane
Thank you, I had the same date problem which the cvs update fixed.

-------------------------------------------------------
Date: 2002-Sep-26 00:11             By: skwashd
Could you please try running a cvs update using this follwoing commands

1) cd /path/to/phpgroupware
2) cvs -z3 update -Pd

Let me know how you go.

Cheers

-------------------------------------------------------
Date: 2002-Aug-01 17:52             By: youki
I' ve tried the following to fix the bug in calendar :
I had the following part of code in calendar/class.uicalendar.inc.php :
        if (date('H',$i)==23) {
          $i=$i+3600;
        }
in function mini_calendar (l.227)
and in function display_month (l.2458)
as the first action of each for loop. And it solved my pb.
But this is not a global way of solving the pb.

Nicolas Reignier


CC list is empty


File Attachments
****************

-------------------------------------------------------
Date: 2002-Aug-01 01:12  Name: 27Octobre.png  Size: 78KB   By: youki
Screenshot of the 2 October 27th
http://savannah.gnu.org/bugs/download.php?group_id=509&amp;bug_id=927&amp;bug_file_id=62

-------------------------------------------------------
Date: 2002-Aug-01 00:58  Name: 27Octobre.png  Size: 78KB   By: youki
Screenshot of the 2 October 27th
http://savannah.gnu.org/bugs/download.php?group_id=509&amp;bug_id=927&amp;bug_file_id=61


For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=927&group_id=509




reply via email to

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