Plugin Directory

Changeset 3202887


Ignore:
Timestamp:
12/05/2024 09:33:58 AM (16 months ago)
Author:
tharkun69
Message:

1.4.9

  • Fix: Previous week logic over the New Year
Location:
occupancy-plan/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • occupancy-plan/trunk/occupancy-plan.php

    r3197914 r3202887  
    1616 * Plugin URI:        https://www.software-kunze.de/plugins/occupancy-plan/
    1717 * Description:       Management of Occupancy Plans
    18  * Version:           1.4.8
     18 * Version:           1.4.9
    1919 * Author:            Alexander Kunze Software Consulting
    2020 * Author URI:        https://www.software-kunze.de
     
    3636 * Rename this for your plugin and update it as you release new versions.
    3737 */
    38 define('Occupancy_Plan', '1.4.8');
     38define('Occupancy_Plan', '1.4.9');
    3939
    4040/**
  • occupancy-plan/trunk/public/partials/occupancy-plan-public-display.php

    r3197914 r3202887  
    6262            $context->week = $context->date->format("Y") . "-W52";
    6363        }
     64        else if (($context->date->format("W") == "01") &&
     65                 ($context->date->format("Y") != substr($context->week,0,4)))
     66        {
     67            $context->week = substr($context->week,0,4) . "-W01";
     68        }
    6469        else
    6570        {
     
    7378        $context->date->setISODate(substr($context->week,0,4), substr($context->week,6,2));
    7479        $context->date->add(new DateInterval('P7D'));
     80
    7581        if (($context->date->format("W") == "01") &&
    7682            ($context->date->format("Y") == substr($context->week,0,4)))
     
    7884            $context->date->add(new DateInterval('P7D'));
    7985            $context->week = $context->date->format("Y") . "-W01";
     86        }
     87        else if (($context->date->format("W") == "52") &&
     88            ($context->date->format("Y") != substr($context->week,0,4)))
     89        {
     90            $context->week = substr($context->week,0,4) . "-W52";
    8091        }
    8192        else
  • occupancy-plan/trunk/readme.txt

    r3197914 r3202887  
    55Requires at least: 4.9
    66Tested up to: 6.7
    7 Stable tag: 1.4.8
     7Stable tag: 1.4.9
    88Requires PHP: 5.2.4
    99License: GPLv2 or later
     
    5050== Changelog ==
    5151
     52= 1.4.9 =
     53* Fix: Previous week logic over the New Year
     54
    5255= 1.4.8 =
    5356* Fix: Next week logic over the New Year
Note: See TracChangeset for help on using the changeset viewer.