Derick Rethans
648e20c1b6
- New implementation of the sunset algorithm. Fixes bugs #33789 , #33671 , #32820
...
and #30937 .
#- Didn't add it to news yet, as we'll merge this to PHP 5.1.x (just need to
# wait for Ilia to approve it for 5.1.2).
2006-01-04 12:57:04 +00:00
foobar
251c5173fd
bump year and license version
2006-01-01 13:10:10 +00:00
Derick Rethans
d932c37ea2
- MFH: Fixed bug #35751 (using date with a timestamp makes httpd segfault).
2005-12-29 10:56:17 +00:00
Derick Rethans
836978a509
- MF51: This check is unnecessary, as it can only be set through the
...
date_default_timezone_set() function which checks the value already.
2005-12-20 19:59:47 +00:00
Derick Rethans
2dcdf6769a
- Fixed bug #35660 (AIX TZ variable format not understood, yields UTC timezone).
2005-12-20 19:50:05 +00:00
Derick Rethans
1394b48d21
- Reintroduced the normal constants.
...
- Made the test cases work with the normal non-class constants.
- Merged new timelib, which is a bit more cleverer
- Support "UTC" in strtotime() properly.
- Added astro code, which is going to form the base for the new sunfuncs.
2005-12-19 12:57:49 +00:00
foobar
c0c7b984f0
nuke php3 legacy
2005-12-06 01:39:35 +00:00
Ilia Alshanetsky
f30dbd9f54
MFB51: Fixed bug #35558 (mktime() interpreting 3 digit years incorrectly).
2005-12-05 17:27:24 +00:00
Ilia Alshanetsky
38d192b7c6
MFB51: Fixed bug #35499 (strtotime() does not handle whitespace around the
...
date string).
2005-12-01 16:26:38 +00:00
Ilia Alshanetsky
2852ace3ef
MFB51: fixed zts build
2005-11-29 23:10:48 +00:00
Ilia Alshanetsky
40dd6dfb4e
Added missing support for 'B' format identifier to date() function.
2005-11-29 20:48:44 +00:00
Ilia Alshanetsky
667a9b9bce
MFB51: Fixed bug #35425 (idate() function ignores timezone settings).
2005-11-29 20:27:21 +00:00
Antony Dovgal
34c4afe3dd
MF51: add properties hashtable to Timezone class
2005-11-26 12:37:20 +00:00
Antony Dovgal
173cbe620f
fix #35402 (New date class causes crash in get_object_vars())
2005-11-26 09:39:50 +00:00
Derick Rethans
d732859624
- MF51: Fixed bug #35143 (gettimeofday() ignores current time zone).
...
- MF51: Fixed tests due to class constants patch.
2005-11-20 20:31:49 +00:00
Ilia Alshanetsky
e919694017
MFB51: Moved date constants into the date class, they all class constants
...
now.
2005-11-17 21:07:27 +00:00
Antony Dovgal
21aeacfa9d
call zend_objects_destroy_object() explicitly
...
fix segfault when intern->time is NULL
2005-11-15 14:07:43 +00:00
foobar
972a29d93c
- Fixed error messages and tests
2005-10-19 11:18:16 +00:00
Derick Rethans
ff43c2eea5
- Improve error messages a bit.
2005-10-19 07:21:35 +00:00
Derick Rethans
df0184f25a
- MF51: Fixed timezone guessing on Windows.
2005-10-15 18:14:40 +00:00
Derick Rethans
569f8afa2c
- Apperently you can't store NULL pointer values into Zend hashes - god know
...
why not - so we won't store those in the cache anymore.
2005-10-12 19:49:35 +00:00
Derick Rethans
d9a3cfd931
- Make sure the tzcache' dtor doesn't cleanup cached misses in the lookup
...
tables.
2005-10-10 16:41:40 +00:00
Derick Rethans
f70499f83a
- Make the Windows guessing routines actually return the guessed timezone.
2005-10-07 20:31:57 +00:00
Derick Rethans
5b9d65e873
- Change parameter name because NetWare expands "tzname" as a macro to
...
something else.
2005-10-07 13:33:13 +00:00
Derick Rethans
e8f96db932
- MF51: Windows Timezone guessing code
2005-10-05 18:38:30 +00:00
Antony Dovgal
8ced962510
MFB5.1: include the header, eliminate warning
2005-10-03 23:43:43 +00:00
Derick Rethans
f027a065a7
- Only load external database when it is newer.
2005-10-03 11:34:27 +00:00
Derick Rethans
b75871d017
- Allow an external Timezone Database to be used.
2005-10-03 11:15:21 +00:00
Derick Rethans
2eaf85c481
- MF51: Implemented better timezone guessing algorithm.
2005-10-01 15:07:20 +00:00
Derick Rethans
f872d3346c
- Fix buglett with date() that cause truncated strings to be returned when
...
Unicode is turned on.
2005-09-07 19:09:27 +00:00
Derick Rethans
5169c32573
- Added date_time_set, date_date_set and date_isodate_set() functions, and
...
setTime, setDate and setISODate() methods.
2005-09-02 14:57:42 +00:00
Derick Rethans
31f3f81c82
- MF51: Fixed bug #34304 (date() doesn't have a modifier for ISO Week Day).
2005-09-02 09:41:08 +00:00
Derick Rethans
e4fd549af9
- Fixed bad MF51.
2005-09-02 09:39:21 +00:00
Derick Rethans
cbe8be6a17
- Fixed bug #34302 (date('W') do not return leading zeros for week 1 to 9).
2005-08-30 09:17:56 +00:00
Andrei Zmievski
64dbc03c93
Fix ZTS.
2005-08-24 17:16:14 +00:00
Derick Rethans
c4d08b15f0
- Make it compile in ZTS mode
...
#- *untested*
2005-08-24 17:10:25 +00:00
Derick Rethans
e226f0f87f
- Fixed bug #34087 (strtotime() does not work with date format "Y/m/d").
...
- Make use of YYMAXFILL.
- Added support for using a . as hour/minute/second separator.
2005-08-24 13:47:28 +00:00
Wez Furlong
45412770a2
sizeof(time_t) !== sizeof(int)
...
also, sizeof(timelib_sll) != sizeof(int)
We get loads of truncation errors int this code when we assign 64 values into smaller ints.
2005-08-12 23:46:42 +00:00
Derick Rethans
cef2cd485a
- Fixed TSRM issue.
...
- Added guessed timezone to phpinfo() output.
- Initialize is_dst in some cases.
- Corrected some test cases.
2005-08-09 21:07:54 +00:00
Ilia Alshanetsky
919b0bd5b4
Adjust date("") handling.
2005-08-08 16:49:30 +00:00
foobar
23e671a51e
- Bumber up year
2005-08-03 14:08:58 +00:00
Derick Rethans
8a3d3aefbb
- Changed the year parameter so that 0..69 maps to 2000..2069 and 70..100 maps
...
to 1970..2000, which was in the original code, but not in the documentation.
2005-07-21 10:09:40 +00:00
Derick Rethans
e6c1ff254d
- Fixed bug #33578 (strtotime() problem with "Oct17" format).
...
- Fixed problems with lone years in strtotime().
- Added functions to timelib to get a list of all abbreviations and timezone
identifiers.
- Fixed problems with parsed dates that only have GMT offsets associated
with them.
- Fixed a Windows compile problem.
- Added special constants for different often used date formats (DATE_ISO8601,
DATE_RFC822, DATE_RSS etc).
- Fixed date_default_timezone_get() to return the guessed timezone if none
was set yet with date_default_timezone_set().
- Added experimental support for Date/Timezone objects as per specifications.
2005-07-20 08:31:02 +00:00
foobar
ada35ab562
fixed typos
2005-07-13 07:04:29 +00:00
Antony Dovgal
38e4fb09e0
fix tsrm build
2005-07-08 18:16:46 +00:00
Antony Dovgal
39379b8f58
rename php_format_date() to date_format()
...
add wrapper for date_format() to use it in other extensions
2005-07-08 12:26:30 +00:00
Antony Dovgal
d705522bbe
fix #33614 (memory leak in new strftime())
2005-07-08 10:23:33 +00:00
Derick Rethans
d75d455737
- Change memory management so that tzinfo structures can live outside time
...
structures too.
2005-07-05 18:30:30 +00:00
Derick Rethans
bf23d8d2b8
- Renamed date_timezone_set/get() to date_default_timezone_set/get().
...
- Added missing proto's and folding marks.
2005-07-04 21:27:26 +00:00
Ilia Alshanetsky
95e3f66299
Make sure the timezone is NULL, if change operation fails. Ex. memory_limit
2005-07-04 18:13:15 +00:00