[Top][All Lists]
[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: |
Wed, 31 Jul 2002 10:58:43 -0400 |
=================== BUG #927: LATEST MODIFICATIONS ==================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=927&group_id=509
Changes by: Nicolas Reignier <address@hidden>
Date: 2002-Jul-31 14:58 (GMT)
------------------ Additional Bug Attachment ----------------------------
File name: 27Octobre.png Size:78 KB
Screenshot of the 2 October 27th
http://savannah.gnu.org/bugs/download.php?group_id=509&bug_id=927&bug_file_id=61
=================== BUG #927: FULL BUG SNAPSHOT ===================
Submitted by: youki Project: phpGroupWare
Submitted on: 2002-Jul-31 14:37
Category: API - phpGWapi Bug Group: None
Severity: 5 - Major Priority: Normal
Resolution: None Assigned to: None
Status: Open 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
No Followups Have Been Posted
File Attachments
****************
-------------------------------------------------------
Date: 2002-Jul-31 14:58 Name: 27Octobre.png Size: 78KB By: youki
Screenshot of the 2 October 27th
http://savannah.gnu.org/bugs/download.php?group_id=509&bug_id=927&bug_file_id=61
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=927&group_id=509