Bug #52340 [Bgs]: strtotime conversion error
Edit report at http://bugs.php.net/bug.php?id=52340&edit=1 ID: 52340 User updated by: andrea dot romagnoli at getlocal dot it Reported by: andrea dot romagnoli at getlocal dot it Summary: strtotime conversion error Status: Bogus Type: Bug Package: Date/time related Operating System: Linux PHP Version: 5.3.2 New Comment: Sorry, I made a big mistake... Next time I will pay more attention before post a bug report. Good work. Best regards. Previous Comments: [2010-07-15 11:21:57] sala...@php.net The following will return 23 hours. If the result does not equate to your own "day by day" values please provide a similar short script to demonstrate the problem. [2010-07-15 11:07:20] andrea dot romagnoli at getlocal dot it Yes, but if I check the difference day by day from 22 march to 29 march is ever of 24H, why the daylight saving is show to me only if I subtract a week? [2010-07-15 10:58:18] sala...@php.net The actual number of seconds between those two date/times is expected. This is because it crosses a Daylight Savings boundary (at 2010-03-28T01:00:00+). Since the clocks went forward by an hour at that time, the number of seconds between the dates reflects that resulting in a "missing" hour. For more information see http://en.wikipedia.org/wiki/Daylight_saving_time ---- [2010-07-15 01:50:18] andrea dot romagnoli at getlocal dot it Description: The result of subtraction between result of strtotime("Monday 29 March 2010 06:00:00") and the result of strtotime("Monday 22 March 2010 06:00:00") is not a week, but instead is a week less 2,5 minutes... Infact a week are 604800 seconds but the result of this subtraction is 601200. I tried to subtract day per day in the interval and all subtractions are correct and results every time 86400 seconds. Test script: --- Expected result: I think that all subtractions should be return 604800 seconds. Actual result: -- Actually one of subtractions return 601200 instead of 604800 seconds. -- Edit this bug report at http://bugs.php.net/bug.php?id=52340&edit=1
Bug #52340 [Bgs]: strtotime conversion error
Edit report at http://bugs.php.net/bug.php?id=52340&edit=1 ID: 52340 User updated by: andrea dot romagnoli at getlocal dot it Reported by: andrea dot romagnoli at getlocal dot it Summary: strtotime conversion error Status: Bogus Type: Bug Package: Date/time related Operating System: Linux PHP Version: 5.3.2 New Comment: Yes, but if I check the difference day by day from 22 march to 29 march is ever of 24H, why the daylight saving is show to me only if I subtract a week? Previous Comments: [2010-07-15 10:58:18] sala...@php.net The actual number of seconds between those two date/times is expected. This is because it crosses a Daylight Savings boundary (at 2010-03-28T01:00:00+). Since the clocks went forward by an hour at that time, the number of seconds between the dates reflects that resulting in a "missing" hour. For more information see http://en.wikipedia.org/wiki/Daylight_saving_time [2010-07-15 01:50:18] andrea dot romagnoli at getlocal dot it Description: The result of subtraction between result of strtotime("Monday 29 March 2010 06:00:00") and the result of strtotime("Monday 22 March 2010 06:00:00") is not a week, but instead is a week less 2,5 minutes... Infact a week are 604800 seconds but the result of this subtraction is 601200. I tried to subtract day per day in the interval and all subtractions are correct and results every time 86400 seconds. Test script: --- Expected result: I think that all subtractions should be return 604800 seconds. Actual result: -- Actually one of subtractions return 601200 instead of 604800 seconds. -- Edit this bug report at http://bugs.php.net/bug.php?id=52340&edit=1
[PHP-BUG] Bug #52340 [NEW]: strtotime conversion error
From: Operating system: Linux PHP version: 5.3.2 Package: Calendar related Bug Type: Bug Bug description:strtotime conversion error Description: The result of subtraction between result of strtotime("Monday 29 March 2010 06:00:00") and the result of strtotime("Monday 22 March 2010 06:00:00") is not a week, but instead is a week less 2,5 minutes... Infact a week are 604800 seconds but the result of this subtraction is 601200. I tried to subtract day per day in the interval and all subtractions are correct and results every time 86400 seconds. Test script: --- Expected result: I think that all subtractions should be return 604800 seconds. Actual result: -- Actually one of subtractions return 601200 instead of 604800 seconds. -- Edit bug report at http://bugs.php.net/bug.php?id=52340&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=52340&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=52340&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=52340&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=52340&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=52340&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=52340&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=52340&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=52340&r=needscript Try newer version: http://bugs.php.net/fix.php?id=52340&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=52340&r=support Expected behavior: http://bugs.php.net/fix.php?id=52340&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=52340&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=52340&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=52340&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=52340&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=52340&r=dst IIS Stability: http://bugs.php.net/fix.php?id=52340&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=52340&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=52340&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=52340&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=52340&r=mysqlcfg