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

Bug #21209 Wrong calculation of mothersDay
Submitted: 2017-05-11 10:48 UTC
From: heinz_htl Assigned:
Status: Open Package: Date_Holidays_Austria (version 0.1.6)
PHP Version: 5.6.30 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 45 - 5 = ?

 
 [2017-05-11 10:48 UTC] heinz_htl (Schweiger Heinz)
Description: ------------ mothersDay is calculated like this in the current version: $mothersDay = $this->_calcFirstMonday("05"); $mothersDay = $mothersDay->getPrevDay(); $mothersDay = $this->_addDays($mothersDay, 7); mothersDay should be the second sunday in May. If (like this year) the first of May is a monday mothers day is calculated wrong (8th of May) If the date returned by getPrevDay() is not in May then 7 days should be added.

Comments