1
0
mirror of synced 2025-12-15 01:28:02 +08:00

v1.0.33 修复八字流年计算错误。

This commit is contained in:
6tail
2020-11-27 12:12:56 +08:00
parent 6f7c0d36e7
commit bb973641f7
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -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": {