v1.0.33 修复八字流年计算错误。
This commit is contained in:
2
lunar.js
2
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;
|
||||
}
|
||||
|
||||
@@ -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": {
|
||||
|
||||
Reference in New Issue
Block a user