$today = time();
// for testing the dates to test use mktime() for the current time use time()
$today = mktime(0, 0, 0, 11, 2, 2016);
+
$start9to8 = mktime( 0, 0, 0, 5, 21, date('Y'));
-$end9to8 = mktime( 0, 0, 0, 9, 30, date('Y'));
-$start9to7 = mktime( 0, 0, 0, 10, 1, date('Y'));
+$end9to8 = mktime( 0, 0, 0, 10, 3, date('Y'));
+
+$start9to7 = mktime( 0, 0, 0, 10, 4, date('Y'));
$end9to7 = mktime( 0, 0, 0, 11, 1, date('Y'));
// check the date
-// if time is between May 21st and September 30 then hours should be 9am to 8pm
-// if time is between Oct 1st and Nov 1 then hours should be 9am to 7pm
+// if time is between May 21st and Oct 3rd then hours should be 9am to 8pm
+// if time is between Oct 4th and Nov 1 then hours should be 9am to 7pm
// else show the closed ribbon
if ( $today >= $start9to8 && $today <= $end9to8 ) {
$ribbon = 'open-today.png';