bugphpGroupWare - Bugs: bug #927, Daylight saving - calendar day...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #927: Daylight saving - calendar day shift

Submitter:  Invalid User ID <#7768>
Submitted:  Wed 31 Jul 2002 02:37:16 PM UTC
   
 
Category:  API - phpGroupware API Item Group:  None
Severity:  3 - Normal Priority:  5 - Normal
Status:  Fixed Privacy:  Public
Assigned to:  None Open/Closed:  Closed
Component Version:  None Operating System:  None
Reproducibility:  Every Time Planned Release:  None
Fixed Release: 

Mon 30 Sep 2002 01:58:14 AM UTC, comment #5: 

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

Dave Hall <skwashd>
Group administrator
Mon 30 Sep 2002 01:06:25 AM UTC, comment #4: 

This has been fixed in CVS and should be available in the next
release.

Dave Hall <skwashd>
Group administrator
Sun 29 Sep 2002 08:14:45 AM UTC, comment #3: 

Thank you, I had the same date problem which the cvs update fixed.

Invalid User ID <#11037>
Wed 25 Sep 2002 02:11:35 PM UTC, comment #2: 

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

Dave Hall <skwashd>
Group administrator
Thu 01 Aug 2002 07:52:28 AM UTC, comment #1: 

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

Invalid User ID <#7768>
Wed 31 Jul 2002 02:37:16 PM UTC, 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 (info@ch-colmar.rss.fr)

Hope this helps

Nicolas Reignier

Invalid User ID <#7768>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2002-09-30 skwashd StatusNone None
    Open/ClosedOpen None

Back to the top

Powered by Savane 3.14-e31b.
Corresponding source code