Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.5.0a4

Bug #19350 Date comparison broken for BST this year
Submitted: 2012-03-26 17:20 UTC
From: dumb Assigned:
Status: Open Package: Date (version 1.5.0a2)
PHP Version: 5.3.10 OS: Linux
Roadmaps: (Not assigned)    
Subscription  


 [2012-03-26 17:20 UTC] dumb (Dumb Terminal)
Description: ------------ When comparing dates on 26/03/2012 before() and after() do not work as expected. This problem goes away after or before BST of this year. Test script: --------------- //Default timezone Europe/London require_once "Date.php"; $date = new Date("2012-03-26 10:46:17"); $compare = new Date("2012-03-26 00:00:00"); var_export($date->after($compare)); var_export($date->before($compare)); Expected result: ---------------- bool(true) bool(false) Actual result: -------------- bool(false) bool(true)

Comments