1
0
mirror of https://github.com/php/php-src.git synced 2026-04-27 01:48:26 +02:00
Commit Graph

146 Commits

Author SHA1 Message Date
Antony Dovgal 23db743e46 fix test 2009-01-28 12:59:08 +00:00
andy wharmby 21aa7d168a New date tests for getdate() and gmstrftime(). Tested on WIndows, Linux and Linux 64 bit 2009-01-22 18:47:34 +00:00
andy wharmby 18e73c14a2 New basic time()and microtime() tests. Tested on Windows, Linux and Linux 64 bit 2009-01-22 14:11:12 +00:00
andy wharmby 3cdae46259 Fix test after #46732 fix. Tested on WIndows, Linux and Linux 64 bit 2009-01-22 13:50:33 +00:00
Sanjay Mantoor 677debbd11 New testcases for strftime function 2009-01-21 10:52:34 +00:00
Antony Dovgal 53e5f104e4 fix typo 2009-01-14 16:32:02 +00:00
andy wharmby a3409dc80d 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:54 +00:00
andy wharmby 9a86c92895 Fix new date tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 23:10:52 +00:00
andy wharmby 92926978a2 New date extension tests. Tested on Windows, Linux and Linux 64 bit 2009-01-13 13:38:34 +00:00
Sanjay Mantoor c5d0d152a9 New testcases for localtime function 2009-01-09 05:08:44 +00:00
Zoe Slattery 71539c429e removing xfail sections as test passes 2008-12-31 20:17:41 +00:00
Sanjay Mantoor a2de42599b New testcases for idate function 2008-12-23 09:13:28 +00:00
Sanjay Mantoor 8867ffc100 New testcases for gmmktime function 2008-12-23 07:47:00 +00:00
Derick Rethans 9fbc798d63 - Added a test case for bug #46268. (Bug itself is not present in 5.2). 2008-12-18 20:30:06 +00:00
Sanjay Mantoor d0eaa59d0f New testcases for gmdate function 2008-12-15 10:36:53 +00:00
Sanjay Mantoor 29c885c8bd New testcases for gettimeofday function 2008-12-15 08:23:58 +00:00
Sanjay Mantoor 59338d84b7 New testcases for date_sunset function 2008-12-05 06:12:11 +00:00
Sanjay Mantoor 8f00f19419 New testcases for date_sunrise function 2008-12-05 05:35:39 +00:00
Derick Rethans 24a764e086 - MFH: Fixed bug #46732 (mktime.year description is wrong). 2008-12-02 18:01:58 +00:00
Derick Rethans 21490362dd - MFH: Fixed weekdays adding/subtracting algorithm.
- MFH: Fixed some ambiguities in the date parser.
- MFH: Fixed bug #45529 (new DateTimeZone() and date_create()->getTimezone()
  behave different).
- 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).
- 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 a segfault - simply a forgotten return;
2008-10-26 11:27:32 +00:00
Zoe Slattery f432258b02 Committing test for till 2008-10-21 09:37:41 +00:00
Antony Dovgal 269aac9ee9 fix test 2008-04-18 08:22:01 +00:00
Derick Rethans 8649483a69 - Fixed bug #44703 (htmlspecialchars() does not detect bad character set
argument).
2008-04-16 17:21:46 +00:00
Derick Rethans b0b7f4eed1 - MFH: Fixed a bug in formatting timestamps when DST is active in the default
timezone.
2008-03-31 09:12:15 +00:00
Derick Rethans a58f8d2a9b - MFH: Fixed tests on 64bit platform. 2008-02-25 22:34:11 +00:00
Dmitry Stogov c9fd5b3010 Fixed test 2008-01-29 10:43:42 +00:00
Derick Rethans da11bc2b32 - MFH Bugfixes:
- Fixed bug #43808 (date_create never fails (even when it should)).
	- Fixed bug #43527 (DateTime created from a timestamp reports environment
	  timezone).
	- Fixed bug #43003 (Invalid timezone reported for DateTime objects
	  constructed using a timestamp).
	- Fixed bug #42190 (Constructing DateTime with TimeZone Indicator
	  invalidates DateTimeZone).
	- Fixed bug #41599 (setTime() fails after modify() is used).
2008-01-26 16:26:47 +00:00
Hannes Magnusson 30ff9a85cf MFH: Fix test 2008-01-01 14:36:08 +00:00
Antony Dovgal e9e1ba64e9 MFH 2007-11-08 11:39:59 +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