diff --git a/lunar.js b/lunar.js index 5143179..3753b85 100644 --- a/lunar.js +++ b/lunar.js @@ -2978,7 +2978,7 @@ getIndex: function(){return this._p.index;}, getLunar: function(){return this._p.lunar;}, getGanZhi: function(){ - var offset = LunarUtil.getJiaZiIndex(this._p.lunar.getYearInGanZhiExact()) + this._p.index; + var offset = LunarUtil.getJiaZiIndex(this._p.lunar.getJieQiTable()['立春'].getLunar().getYearInGanZhiExact()) + this._p.index; if (this._p.daYun.getIndex() > 0) { offset += this._p.daYun.getStartAge() - 1; } diff --git a/package.json b/package.json index 50a9a55..599e8c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "lunar-javascript", - "version": "1.0.32", + "version": "1.0.33", "description": "lunar is a calendar library for Solar and Chinese Lunar.", "main": "index.js", "scripts": {