Plugin Directory

Changeset 3148397


Ignore:
Timestamp:
09/09/2024 05:06:17 AM (18 months ago)
Author:
themewinter
Message:

Adding version 2.2.30

Location:
wp-cafe/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • wp-cafe/trunk/core/modules/reservation/wpc-reservation-report.php

    r3084054 r3148397  
    153153           
    154154            if ( $wpc_booking_date !=="" ) {
    155                 $wpc_booking_date = date_i18n($wpc_date_format, strtotime( $wpc_booking_date ) );
     155                $wpc_booking_date = Wpc_Utilities::get_formatted_date( $wpc_booking_date );
    156156            }
    157157           
  • wp-cafe/trunk/readme.txt

    r3125940 r3148397  
    33Tags: food menu, food ordering, food delivery, restaurant reservations, restaurant menu
    44Requires at least: 5.2
    5 Tested up to: 6.5.5
    6 Stable tag: 2.2.29
    7 Requires PHP: 7.0
     5Tested up to: 6.6.1
     6Stable tag: 2.2.30
     7Requires PHP: 7.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    397397== Changelog ==
    398398
     399= 2.2.30 ( September 8, 2024 ) =
     400
     401Fix             : Reservation list incorrect date format
     402Fix             : Seat capacity functionality improvement
     403
    399404= 2.2.29 ( July 25, 2024 ) =
    400405
  • wp-cafe/trunk/utils/wpc-utilities.php

    r3125940 r3148397  
    15361536        return $cache_key;
    15371537    }
     1538
     1539    public static function get_formatted_time($timeString){
     1540        $time_format = get_option('time_format');
     1541        $dateTime = \DateTime::createFromFormat($time_format, $timeString);
     1542        if ($dateTime) {
     1543            $timestamp = $dateTime->getTimestamp();
     1544            return date_i18n($time_format, $timestamp );
     1545        } else {
     1546            return $timeString;
     1547        }
     1548    }
     1549
     1550    public static function get_formatted_date($dateString){
     1551        $date_format = get_option('date_format');
     1552        $dateTime = \DateTime::createFromFormat($date_format, $dateString);
     1553        if ($dateTime) {
     1554            $timestamp = $dateTime->getTimestamp();
     1555            return date_i18n($date_format, $timestamp );
     1556        } else {
     1557            return $dateString;
     1558        }
     1559    }
    15381560}
  • wp-cafe/trunk/wpcafe.php

    r3125940 r3148397  
    99 * Plugin URI:         https://product.themewinter.com/wpcafe
    1010 * Description:        WordPress Restaurant solution plugin to launch Restaurant Websites.
    11  * Version:            2.2.29
     11 * Version:            2.2.30
    1212 * Author:             Themewinter
    1313 * Author URI:         http://themewinter.com/
     
    3030     */
    3131    static function version() {
    32         return '2.2.29';
     32        return '2.2.30';
    3333    }
    3434
Note: See TracChangeset for help on using the changeset viewer.