diff --git a/lunar.js b/lunar.js index eaf9cbd..571b39d 100644 --- a/lunar.js +++ b/lunar.js @@ -1174,11 +1174,11 @@ } return LunarUtil.POSITION_TAI_MONTH[m-1]; }, - getDayYi:function(){ - return LunarUtil.getDayYi(this.getMonthInGanZhiExact(),this.getDayInGanZhi()); + getDayYi:function(sect){ + return LunarUtil.getDayYi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi()); }, - getDayJi:function(){ - return LunarUtil.getDayJi(this.getMonthInGanZhiExact(),this.getDayInGanZhi()); + getDayJi:function(sect){ + return LunarUtil.getDayJi(2 == sect ? this.getMonthInGanZhiExact() : this.getMonthInGanZhi(), this.getDayInGanZhi()); }, getDayJiShen:function(){ return LunarUtil.getDayJiShen(this.getMonth(),this.getDayInGanZhi()); diff --git a/package.json b/package.json index 5084197..ac6fc87 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lunar-javascript", - "version": "1.2.28", + "version": "1.2.29", "description": "lunar is a calendar library for Solar and Chinese Lunar.", "main": "index.js", "scripts": {