6.0.0-alpha12
6/9/25

[#4808] iCalendar.php function "parseDateTime" returns string for date 0
Summary iCalendar.php function "parseDateTime" returns string for date 0
Queue Horde Framework Packages
Queue Version HEAD
Type Bug
State Resolved
Priority 1. Low
Owners
Requester wrobel (at) gentoo (dot) org
Created 12/21/2006 (6745 days ago)
Due
Updated 12/22/2006 (6744 days ago)
Assigned
Resolved 12/22/2006 (6744 days ago)
Github Issue Link
Github Pull Request
Milestone
Patch No

History
12/22/2006 02:17:35 AM Chuck Hagenbuch Comment #2
State ⇒ Resolved
Reply to this comment
Correct test is !== false, since isset() on a variable set to false is 
true. Thanks!
12/21/2006 11:02:29 AM wrobel (at) gentoo (dot) org Comment #1
State ⇒ Unconfirmed
Priority ⇒ 1. Low
Type ⇒ Bug
Summary ⇒ iCalendar.php function "parseDateTime" returns string for date 0
Queue ⇒ Horde Framework Packages
New Attachment: framework_iCalendar-parseDateTime_fix-20061221.patch Download
Reply to this comment
When _parseDateTime in iCalendar.php parses the date 
"19700101T000000Z" the result will be 0. The final check in that 
function assumes that parsing failed and returns a string which is 
incorrect.



The attached patch fixes the problem and adds a test for that situation.

Saved Queries