Plugin Directory

Changeset 2294118


Ignore:
Timestamp:
04/29/2020 06:35:46 AM (6 years ago)
Author:
caodat
Message:

Fix error show date lunar

Location:
lich-van-nien/trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • lich-van-nien/trunk/LVN_Lunar.php

    r2119992 r2294118  
    88if ( ! class_exists( 'LVN_Lunar' ) ) {
    99    class LVN_Lunar {
    10 
     10        protected $convert;
    1111        // Init function construct
    1212        function __construct() {
     13            $convert = new LVN_Convert_Date();
     14            $this->convert = $convert;
    1315            $this->init();
    1416        }
     
    652654            }
    653655
    654             return $this->find_lunar_date( $jd, $lunar_year );
     656            return $this->convert->convert_solar_to_lunar($day,$month,$year);
    655657        }
    656658
     
    916918                    } else {
    917919                        $solar  = $k - $empty_cell + 1;
    918                         $ld1    = $current_month[ $k - $empty_cell ];
     920                        $ld1    = $this->convert->convert_solar_to_lunar($solar,$month,$year);
    919921                        $result .= $this->print_cell( $ld1, $solar, $month, $year );
    920922                    }
  • lich-van-nien/trunk/calendar-lunar.php

    r2119992 r2294118  
    3232    add_action( 'wp_enqueue_scripts', 'lvn_load_script' );
    3333}
    34 
     34require LVN_DIR. 'LVN_Convert_Date.php';
    3535require LVN_DIR . 'LVN_Lunar_Date.php';
    3636require LVN_DIR . 'LVN_Lunar.php';
  • lich-van-nien/trunk/readme.txt

    r2119992 r2294118  
    55Tested up to: 5.2
    66Requires PHP: 7.0
    7 Stable tag: 1.3
     7Stable tag: 1.4
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
     
    5151
    5252== Changelog ==
     53= 1.4 =
     54* Release date 20 April 2019*
     55
     56* Sửa lỗi hiển thị sai ngày âm trên lịch một số tháng
    5357
    5458= 1.3 =
Note: See TracChangeset for help on using the changeset viewer.