next Problems with Date.php 1.3.1 beta :(
| From: | Jan Jonas | Date: | Mon, 04 Aug 2003 13:27:34 +0000 |
| Subject: | next Problems with Date.php 1.3.1 beta :( | ||
| References: | 1 2 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-19255@lists.php.net to get a copy of this message | ||
Hi,
thanks a lot for your fast answer :). Now 2 new Problem:
The Date.php ver. 1.3.1 includes a file/class named "Date/Span.php;"
Where can I get it? In my opionion it is'nt a part of the Date-package
which i installed with
pear install Date
In the method getDate the command after
case DATE_FORMAT_UNIXTIME has to look like:
return mktime($this->hour, $this->minute, $this->second, $this->month,
$this->day, $this->year, -1);
PHP-Manual [http://de2.php.net/manual/en/function.mktime.php]:
int mktime ( [int hour [, int minute [, int second [, int month [, int
day [, int year [, int is_dst]]]]]]])
The Problem here ist the is_dst Paramater which is in the original
Version of Date.php is set to 0 or 1 (i don't know exactly). I think -1
is much better; because then php tries to find out if it's winter- or
summertime.
Last year i developed with Date.php and I had the problem, that all my
date Objects were shifted by 1 hour then I recognized, that the
Date-class saved the values as summertime, but it was winter.
Jan