andy wharmby
0c1fe359a1
New tests for date extension DateTime methods Tested on Windows, Linux and linux 64
2009-03-18 11:32:59 +00:00
andy wharmby
13db8cb25a
New tests for date extension DateTimeZone methods Tested on Windows, Linux and linux 64
2009-03-18 11:13:04 +00:00
Antony Dovgal
62e2021305
fix tests
2009-03-01 21:26:54 +00:00
Antony Dovgal
64003cd352
fix test
2009-01-28 12:58:59 +00:00
Derick Rethans
4ca3fa7120
- Fixed tests?
...
#- Wondering why those are not in HEAD though...
2009-01-27 14:22:17 +00:00
Scott MacVicar
8e11f40093
Fix tests
2009-01-27 14:16:15 +00:00
Derick Rethans
fb183b1777
- MFH: Elevate no-tz set warning from E_STRICT to E_WARNING.
...
#- [DOC]
2009-01-27 13:48:10 +00:00
andy wharmby
023db07910
New date tests for getdate() and gmstrftime(). Tested on WIndows, Linux and Linux 64 bit
2009-01-22 18:47:46 +00:00
andy wharmby
0d4228940c
New basic time()and microtime() tests. Tested on Windows, Linux and Linux 64 bit
2009-01-22 14:11:08 +00:00
andy wharmby
c70c7ca7f9
Fix test after #46732 fix. Tested on WIndows, Linux and Linux 64 bit
2009-01-22 13:50:45 +00:00
Sanjay Mantoor
5b75dd317f
New testcases for strftime function
2009-01-21 10:51:04 +00:00
Antony Dovgal
ad0935cd47
fix typo
2009-01-14 16:32:41 +00:00
andy wharmby
c1bf1627dd
Fix date_suninfo_tests; add missing date_default_timezone_set() to ensure they PASS when run in any timezone. Tested on WIndows, Linux and Linux 64bit.
2009-01-14 16:28:18 +00:00
andy wharmby
f52ad63dfb
Fix new date tests. Tested on Windows, Linux and Linux 64 bit
2009-01-13 23:08:03 +00:00
andy wharmby
cb9476027c
New date extension tests. Tested on Windows, Linux and Linux 64 bit
2009-01-13 13:38:19 +00:00
Scott MacVicar
a9e5e22275
If a TZ environmental is set then it ends up getting used instead of the INI setting, use date_default_timezone_set() instead.
2009-01-10 00:50:45 +00:00
Sanjay Mantoor
49a6cc243e
New testcases for localtime function
2009-01-09 05:09:40 +00:00
Derick Rethans
e5491af3c5
- MFH: Fixed bug #46268 (DateTime::modify() does not reset relative time
...
values).
2008-12-18 20:32:23 +00:00
Johannes Schlüter
e23b2b3fa5
MFH (Use the same test fiel as in HEAD)
2008-12-13 22:23:29 +00:00
Sanjay Mantoor
fb6ae89566
New testcases for idate function
2008-12-08 10:48:22 +00:00
Derick Rethans
7a28b876e4
- MFH: Fixed bug #46732 (mktime.year description is wrong).
2008-12-02 18:02:16 +00:00
Sanjay Mantoor
db0376cf94
Fixed testcsae inputs so that test runs faster
2008-11-24 11:10:02 +00:00
Sanjay Mantoor
223c2d002e
New testcases for gmmktime function
2008-11-21 06:22:58 +00:00
Sanjay Mantoor
ccef11d68f
New testcases for gmdate function
2008-11-14 09:16:00 +00:00
Sanjay Mantoor
eb2e561bfe
New testcases for date_sunset function
2008-11-10 07:12:00 +00:00
Sanjay Mantoor
42325f9d48
New testcases for date_sunrise function
2008-11-10 05:52:20 +00:00
Derick Rethans
1c08ae1c8e
- MFH: Fixed an issue with the * format specifier for parsing from a
...
user-defined format.
2008-11-05 10:42:42 +00:00
Sanjay Mantoor
2ca0889e8c
New testcases for gettimeofday function
2008-10-30 10:49:45 +00:00
Zoe Slattery
7902763a82
scottish time variation
2008-10-28 19:24:49 +00:00
Zoe Slattery
5fe0e9c5ed
Committing test for till
2008-10-21 09:33:21 +00:00
Pierre Joye
5c7e2072c6
- [DOC] win's strftime does not support all posix formatting code and have some win specific rules see http://msdn.microsoft.com/en-us/library/fe06s4ak(VS.80).aspx for a complete list: split test for win32 and posix
2008-08-10 11:27:48 +00:00
Derick Rethans
833f96a2b3
- MFH: Fixed a bug that caused miscalculations with the "last <weekday> of <n>
...
month" relative time string.
2008-08-05 18:03:47 +00:00
Derick Rethans
b5e2564abf
- MFH: Fixed a bug with the YYYY-MM format not resetting the day correctly.
...
- MFH: Fixed a bug in the DateTime->modify() methods, it would not use the
advanced relative time strings.
- MFH: Fixed return values of all the modifying methods, they now properly
return the object itself.
2008-07-30 18:00:44 +00:00
Dmitry Stogov
062daaf6a5
Fixed test
2008-07-29 12:17:19 +00:00
Derick Rethans
7537b5b6d7
- MFH: Fixed DateTime::setTimestamp() and added a test for it.
2008-07-27 19:10:23 +00:00
Antony Dovgal
15cb10c7e3
fix test
2008-07-24 07:32:28 +00:00
Derick Rethans
11f9cd84f7
- MFH: Fixed bug #43452 (strings containing a weekday, or a number plus weekday
...
behaved incorrect of the current day-of-week was the same as the one in the
phrase).
2008-07-23 18:50:37 +00:00
Antony Dovgal
c31464c976
fix test
2008-07-23 09:49:18 +00:00
Derick Rethans
f279efa61e
- MFH: Fixed one more test (on 32 bits)
2008-07-21 09:32:15 +00:00
Derick Rethans
96dedbfedb
- MFH: fix test
2008-07-21 07:27:26 +00:00
Derick Rethans
f8050d525f
- MFH: Fixed bug #45562 (Creating instance of DatePeriod crashes).
2008-07-20 20:58:51 +00:00
Dmitry Stogov
58e6e2b3d9
Fixed test
2008-07-20 15:56:28 +00:00
Derick Rethans
0ab7520dc0
- MFH: Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone() behave
...
different).
2008-07-16 15:41:01 +00:00
Derick Rethans
8d14c2b182
- MFH: Fixed tests.
2008-07-16 07:36:04 +00:00
Felipe Pena
8f8b51bc87
- Fixed test
2008-07-09 12:53:58 +00:00
Joe Orton
3ab1efefc4
- MFH: tweak test case to better trigger the (now-fixed) reference bugs
2008-07-09 08:37:29 +00:00
Derick Rethans
db2ed70a73
- MFH: Fixed bug #45459 (date_create_from_format() fails on DATE_RFC3339) by
...
allowing a few more format specifiers in date_create_from_format() /
date_parse_from_format().
2008-07-08 20:25:28 +00:00
Derick Rethans
198746158f
- MFH: Fixed memory leaks and segfaults, patch by Joe Orton.
...
- MFH: Fixed bug #45038 (Crash when using DateTimeZone object returned by
Date::getTimezone).
2008-07-08 17:41:51 +00:00
Raghubansh Kumar
e70880d3b1
Committed for Felix De Vliegher, TestFest Task No: 123, Tested on RHEL5, WinXP
2008-06-17 13:14:45 +00:00
Raghubansh Kumar
0b5f3a1895
Committed for Felix De Vliegher, TestFest Task No: 122, Tested on RHEL5, WinXP
2008-06-17 13:14:19 +00:00
Antony Dovgal
4489851424
fix test
2008-04-29 07:26:46 +00:00
Derick Rethans
2047fa858c
- Added new date/time functionality:
...
. support for diffing date/times through date_diff() / DateTime::diff().
. added DateInterval class to represent the difference between two date/times.
. support for parsing ISO intervals for use with DateInterval.
. date_add() / DateTime::add(), date_sub() / DateTime::sub() for applying an
interval to an existing date/time.
- MFH: Fixed bug #44742 (timezone_offset_get() causes segmentation faults).
2008-04-25 12:35:58 +00:00
Jani Taskinen
9646a59ac0
- Fix test.
2008-04-08 12:00:15 +00:00
Derick Rethans
e64dc309f9
- MFH: Fixed test cases.
2008-04-07 17:41:58 +00:00
Derick Rethans
ec5157fe01
- MFH: Fixed a bug in formatting timestamps when DST is active in the default
...
timezone.
2008-03-31 09:11:30 +00:00
Derick Rethans
f81134a9f2
- MFH: Fixed tests on 64bit platform.
2008-02-25 22:32:59 +00:00
Rasmus Lerdorf
7b307cc256
Typo
2008-01-31 21:36:40 +00:00
Rasmus Lerdorf
9687442341
These two tests both need a timezone
2008-01-31 21:03:32 +00:00
Derick Rethans
6878464e06
- MFH: Fixed bug #43960 (strtotime() returns timestamp in the future when given
...
a bogus string).
2008-01-29 20:10:24 +00:00
Derick Rethans
afd01152f4
- Fixed test case.
2008-01-28 21:00:14 +00:00
Derick Rethans
4b7f5f9630
- MFH: Fixed parsing of timezones
2008-01-27 22:16:48 +00:00
Derick Rethans
216d0cb0ff
- MFH: Added support for selectively listing timezone identifiers through
...
timezone_identifiers_list() / DateTimezone::listIdentifiers().
2008-01-27 17:29:14 +00:00
Nuno Lopes
89d271a7b0
fix test
2008-01-27 17:01:11 +00:00
Derick Rethans
2d2552956c
- Fixed bug #41599 (setTime() fails after modify() is used).
2008-01-17 20:59:10 +00:00
Derick Rethans
3d0797da2b
- MFH: Fixed bug #43075 (Support 2007-11-01T24:00:00+00:00).
2008-01-17 20:45:08 +00:00
Derick Rethans
3fb0e425e0
- MFH: Fixed bug #43808 (date_create never fails (even when it should)).
2008-01-17 20:35:02 +00:00
Derick Rethans
2d4db6b8d6
- Fixed bug #43003 (Invalid timezone reported for DateTime objects constructed
...
using a timestamp).
2008-01-17 19:59:00 +00:00
Derick Rethans
e549873c10
- MFH: Added support for abbreviation and offset based timezone specifiers for
...
DateTime::getOffset() and DateTime::getName().
- MFH: Fixed bug #43527 (DateTime created from a timestamp reports environment
timezone).
- MFH: Fixed bug #42190 (Constructing DateTime with TimeZone Indicator
invalidates DateTimeZone).
2008-01-17 18:49:45 +00:00
Hannes Magnusson
9373479cff
MFH: Fix test
2008-01-01 14:35:31 +00:00
Antony Dovgal
31f9e63270
MFH
2007-11-08 11:39:40 +00:00
Antony Dovgal
77951494b7
MFH
2007-09-19 11:25:57 +00:00
Nuno Lopes
bb2ec1c790
fix test, particularly when running with valgrind, bacause it may take more than one second to execute both instructions and thus get different dates
2007-09-13 19:58:26 +00:00
Derick Rethans
4b64dbb9a1
- MFH: Fixed bug #41964 (strtotime returns a timestamp for non-time string of
...
pattern '(A|a) .+').
- MFH: Fixed bug #41844 (Format returns incorrect number of digits for negative
years -0001 to -0999).
- MFH: Fixed bug #41842 (Cannot create years < 0100 & negative years with
date_create or new DateTime).
- MFH: Fixed bug #41709 (strtotime() does not handle 00.00.0000).
- MFH: Fixed bug #41523 (strtotime('0000-00-00 00:00:00') is parsed as
1999-11-30).
2007-07-12 18:58:00 +00:00
Derick Rethans
2e18eb3858
- Fixed bug #39965 (Latitude and longitude are backwards in date_sun_info()).
2007-04-13 08:33:48 +00:00
Antony Dovgal
8d20caa848
minor improvement
2007-04-11 22:34:48 +00:00
Derick Rethans
b15cbf69c6
- MFH: Fixed bug #40861 (strtotime() doesn't handle double negative relative
...
time units correctly).
2007-04-11 14:37:42 +00:00
Ilia Alshanetsky
57a88f71d5
Added -- test case
2007-03-22 23:34:14 +00:00
Ilia Alshanetsky
5abffb51b6
Fixed bug #40861 (Multiple +/- on relative units breaks strtotime()).
2007-03-21 00:25:55 +00:00
Antony Dovgal
c9ded196b4
fix tests
2007-03-09 09:45:14 +00:00
Hannes Magnusson
a688c62f57
Use relative timestamp
...
#Thanks Nuno :)
2007-01-07 07:58:28 +00:00
Hannes Magnusson
91b8c3b2b5
Fix tests
...
#We'll need to update these every year..
2007-01-05 15:21:45 +00:00
Antony Dovgal
46e5e63f94
MFH
2007-01-03 13:48:54 +00:00
Antony Dovgal
97f0cf1208
fix test
2007-01-03 13:47:11 +00:00
Antony Dovgal
fb18a8e760
more tests
2006-12-22 13:07:53 +00:00
Ilia Alshanetsky
2f291233e6
Fixed bug #39782 (setTime() on a DateTime constructed with a Weekday
...
yields incorrect results).
2006-12-11 21:04:40 +00:00
Nuno Lopes
5737b1e925
and add a test
2006-09-01 23:31:52 +00:00
Michael Wallner
f5ea2dfac4
MFH:
...
- fix leak when cloning DateTimeZone, detected by Antony
- don't fetch objects multiple times when cloning
2006-08-15 06:53:21 +00:00
Michael Wallner
8657927354
MFH: add cloning support to DateTime classes
2006-08-14 20:03:11 +00:00
Antony Dovgal
6112a1266a
fix test
2006-08-02 23:29:17 +00:00
Michael Wallner
a5ddba6f80
- update test
2006-08-01 16:49:17 +00:00
Michael Wallner
5f7750c6e6
MFH:
...
- OO fixes:
. no is_ref for objects in PHP5+
. initialize objects when created with the `new` operator
. check for proper initialization in child classes
- fix typo: transistion -> transition
- add test
2006-08-01 13:28:28 +00:00
Hannes Magnusson
3ca96c8043
Fix DateTime::RSS
...
Update tests
2006-07-28 16:32:31 +00:00
Ilia Alshanetsky
af48ecfc87
Fixed bug #38229 (strtotime() does not parse YYYY-MM format).
2006-07-27 13:00:00 +00:00
Derick Rethans
150d058008
- MFH: Rename date classes to DateTime and DateTimeZone
2006-07-20 15:49:02 +00:00
Derick Rethans
d060a6e8a2
- MFH: Updated timezonedb to version 2006.7.
...
- MFH: Fixed test cases because of new constant values for the formats.
2006-07-04 18:13:58 +00:00
Antony Dovgal
6c37c9fa0a
fix test on AIX and Solaris
2006-06-29 22:45:19 +00:00
Hannes Magnusson
1c530aa7cb
Fix test on linux
2006-06-29 22:10:47 +00:00
Hannes Magnusson
3fd28953c6
mfh
2006-06-29 15:01:31 +00:00
Antony Dovgal
7dec2a7354
more tests
2006-06-27 15:55:06 +00:00
Antony Dovgal
5f024dcc16
more date() tests
2006-06-27 15:08:16 +00:00
Hannes Magnusson
c6080567e2
Fix test
2006-06-17 12:51:02 +00:00
Nuno Lopes
aa48814378
change the timezone used (per Derick request)
...
add one string I missed yesterday. Now every strotime() rule is covered
2006-06-17 10:30:23 +00:00
Nuno Lopes
ca6e1bbcda
new tests. the .re file coverage increases to 96%. really good :)
2006-06-16 22:46:57 +00:00
Hannes Magnusson
50de3fd1ce
MFH: fix test
2006-06-11 00:18:30 +00:00
Derick Rethans
ddd8fd3e3d
- Fixed bug #37747 (strtotime segfaults when given "nextyear").
2006-06-08 16:27:05 +00:00
Hannes Magnusson
91d4ef33ef
MFH: Play nice, use 4digit years in DATE_RSS
2006-05-30 15:14:22 +00:00
Hannes Magnusson
61fc424321
MFH: Fixed DATE_COOKIE, DATE_RSS & tests
2006-05-30 14:46:46 +00:00
Derick Rethans
9a9cd86f38
- Now as text and not HTML.
2006-05-30 13:14:51 +00:00
Derick Rethans
fb92e33b5d
- MFH: Fixed bug #37616 : DATE_RFC822 does not product RFC 822 dates. (Patch by
...
Hannes Magnusson)
2006-05-30 13:12:21 +00:00
Derick Rethans
ab8329ec31
- Fixed bug #37514 (strtotime doesn't assume year correctly).
2006-05-19 14:52:30 +00:00
Derick Rethans
74dfa9f0ba
MFH:
...
- Implemented Dmitry's const patch.
- Added support for "weekday" as relative item.
- Fixed bug #37368 (Incorrect timestamp returned for strtotime()).
2006-05-14 17:36:05 +00:00
Antony Dovgal
d18cd00657
fix tests
2006-04-25 22:09:46 +00:00
Antony Dovgal
47cb31b7df
add default timezone to the tests
2006-04-11 19:34:14 +00:00
Derick Rethans
4043f77e36
- MFH: Fixed bug #37017 (strtotime fails before 13:00:00 with some time zones
...
identifiers). (Derick)
- MFH: Fixed bug #36988 (mktime freezes on long numbers). (Derick)
- MFH: Implemented better error and warning handling that is also used for the
date_parse() function.
- MFH: Fixed problems with "T" in front of a time string was seen as a time
zone string.
- MFH: Fixed a problem were 5 and 6 character timezone abbreviations where not
correctly parsed.
Experimental support (All MFH):
- Added the date_parse() function that returns a parsed date/time string
including warnings and errors.
- Added the timezone_name_from_abbr() function that exposes the guessing
mechanism that tries to find a timezone identifier from a timezone
abbreviation and GMT offset.
2006-04-11 18:03:52 +00:00
Derick Rethans
5c1dbf51af
- Added the test case for bug #36599
2006-03-03 07:53:21 +00:00
Ilia Alshanetsky
2d02bedd9c
Fixed bug #36510 (strtotime() fails to parse date strings with tabs).
2006-02-26 17:05:45 +00:00
Derick Rethans
0249f6b6b6
- MFH: Fixed bug #36224 (date(DATE_ATOM) gives wrong results).
2006-01-31 18:44:19 +00:00
Derick Rethans
88268c6bcc
- MFH: Fixed bug #35887 (wddx_deserialize not parsing dateTime fields properly).
...
- MFH: Fixed bug #35885 (strtotime("NOW") no longer works).
- MFH: Fixed bug #33789 (Many Problems with SunFuncs).
- MFH: Fixed bug #33671 (sun_rise and sun_set don't return a GMT timestamp if one
passes an offset).
- MFH: Fixed bug #32820 (date_sunrise and date_sunset don't handle GMT offset
well).
- MFH: Fixed bug #30937 (date_sunrise() & date_sunset() don't handle endless
day/night at high latitudes).
2006-01-04 21:31:35 +00:00
Derick Rethans
d4dd29194b
- MFH: Fixed year dependent test.
2006-01-02 20:15:57 +00:00
Derick Rethans
f0a0f89a2c
- MFH: Fixed bug #35660 (AIX TZ variable format not understood, yields UTC
...
timezone).
2005-12-20 19:54:10 +00:00
Derick Rethans
97ec0f3db5
- Fixed bug #35699 (date() can't handle leap years before 1970).
2005-12-20 15:58:01 +00:00
Derick Rethans
7b581f6d19
- MFH: Merged new timelib, which is a bit more cleverer
...
- MFH: Support "UTC" in strtotime() properly.
- MFH: Added astro code, which is going to form the base for the new sunfuncs.
2005-12-19 13:00:37 +00:00
Ilia Alshanetsky
2a29db4b2b
Fixed UTC handling problem stemming from an earlier fix for bug #35422 .
2005-12-18 16:15:45 +00:00
Ilia Alshanetsky
579e00d489
Fixed bug #35705 (strtotime() fails to parse soap date format without TZ).
2005-12-16 22:36:46 +00:00
Ilia Alshanetsky
cdb699b497
Fixed bug #35630 (strtotime() crashes on certain relative identifiers).
2005-12-13 02:28:39 +00:00
Ilia Alshanetsky
f19c2e00ec
Fixed bug #35624 (strtotime() does not handle 3 character weekdays).
...
Improved fix for bug #35414 .
2005-12-11 22:35:40 +00:00
Ilia Alshanetsky
937e9f801d
Fixed bug #35558 (mktime() interpreting 3 digit years incorrectly).
2005-12-05 17:27:02 +00:00
Ilia Alshanetsky
f4248e51a4
Fixed bug #35499 (strtotime() does not handle whitespace around the date
...
string).
2005-12-01 16:24:52 +00:00
Ilia Alshanetsky
820b5aa9e4
Fixed bug #35425 (idate() function ignores timezone settings).
2005-11-29 20:19:56 +00:00
Ilia Alshanetsky
bc9fc0d6cf
Fixed tests
2005-11-29 16:25:16 +00:00
Ilia Alshanetsky
2ad81f4584
Fixed bug #35414 (strtotime() no longer works with ordinal suffix).
2005-11-29 01:23:29 +00:00
Ilia Alshanetsky
22f2b206b7
Fixed bug #35422 (strtotime() does not parse times with UTC as timezone).
2005-11-28 23:49:25 +00:00
Ilia Alshanetsky
c2ec68ab62
Fixed bug #35456 (+ 1 [time unit] format did not work).
2005-11-28 22:24:01 +00:00
Ilia Alshanetsky
b3a48855ab
Disabled native date class, to prevent pear::date conflict.
2005-11-27 06:51:43 +00:00
Derick Rethans
2bb4d8282c
- Fixed bug #35143 (gettimeofday() ignores current time zone).
...
- Fixed tests due to class constants patch.
2005-11-20 20:14:24 +00:00
Ilia Alshanetsky
eb0a6a666f
Moved date constants into the date class, they all class constants now.
2005-11-17 21:05:30 +00:00
Ilia Alshanetsky
95c6c6d2cd
Fixed test.
2005-11-17 18:25:16 +00:00
Derick Rethans
924ae32ddf
- Fixed bug #35218 (strtotime no longer ignores timezone comments like "(PST)")
2005-11-17 13:04:31 +00:00
Ilia Alshanetsky
cce5e8c9ea
Updated tests to use [] instead of {}
2005-11-16 15:13:20 +00:00
Derick Rethans
719e78c78f
- Fixed bug #34874 and #33546 (Problems with lone daynames).
2005-10-19 21:08:35 +00:00
foobar
e264b8a4d3
MFH: Fixed error messages and tests
2005-10-19 11:18:51 +00:00
Derick Rethans
e3c8bd51de
- MFH: Fixed bug #34676 : missing support for strtotime("midnight") and
...
strtotime("noon").
2005-10-08 14:31:17 +00:00
Derick Rethans
969f05a709
- MFH: Fixed bug #34771 (strtotime() fails with 1-12am/pm).
2005-10-07 08:09:01 +00:00
Derick Rethans
08b5c498ce
- Implemented better timezone guessing algorithm.
2005-10-01 15:04:07 +00:00
Derick Rethans
321732227f
- Fixed bug #34304 (date() doesn't have a modifier for ISO Week Day).
2005-09-02 09:33:08 +00:00
foobar
a4673bd7b7
Fix test (week numbers below 10 are zero-prefixed now)
2005-09-02 05:17:42 +00:00
Derick Rethans
9057102e6e
- MFH: Fixed bug #33414 (Comprehensive list of incorrect days returned after
...
strtotime() / date() tests).
2005-09-01 12:42:39 +00:00
Derick Rethans
9230473cd3
- Fixed bug #33957 (gmdate('W')/date('W') sometimes returns wrong week number).
2005-08-31 14:29:23 +00:00
Derick Rethans
d3326d5b26
- MFH: Fixed bug #34087 for real.
...
- MFH: Windows compile fixes.
2005-08-25 09:47:28 +00:00
Ilia Alshanetsky
690f2ab5ed
Added test for bug #34087
2005-08-17 15:31:57 +00:00