From bb973641f7b8eeb5875d0ba4c4c096264228ce9b Mon Sep 17 00:00:00 2001 From: 6tail <6tail@6tail.cn> Date: Fri, 27 Nov 2020 12:12:56 +0800 Subject: [PATCH] =?UTF-8?q?v1.0.33=20=E4=BF=AE=E5=A4=8D=E5=85=AB=E5=AD=97?= =?UTF-8?q?=E6=B5=81=E5=B9=B4=E8=AE=A1=E7=AE=97=E9=94=99=E8=AF=AF=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lunar.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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": {