Skip to content

Commit 84e4861

Browse files
committed
corrected : generate calendar from gregorian date selet
1 parent 9e430c2 commit 84e4861

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

qml/main.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,8 @@ ApplicationWindow {
224224
}
225225

226226
function renderCalendarByAd(year, monthIndex) {
227-
var jd = Panchanga.toJulianDay(year, monthIndex + 1, d);
227+
var d = 1;
228+
var jd = Panchanga.toJulianDay(year, monthIndex, d); //Show month with gregorian day 1
228229
var ahar = jd - Panchanga.KaliEpoch;
229230
var sunLong = Panchanga.trueLongitudeSun(ahar);
230231
var bsInfo = Panchanga.getBikramSambatInfo(ahar, sunLong);

0 commit comments

Comments
 (0)