projects
/
lichviet-widget
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0dc1ccd
)
* Fixes know bugs
author
Cuong Le
<metacuong@gmail.com>
Fri, 9 Sep 2011 00:04:54 +0000
(07:04 +0700)
committer
Cuong Le
<cuonglb@ideapad.(none)>
Fri, 9 Sep 2011 00:05:35 +0000
(07:05 +0700)
* Git --auth
qml/lichvietwidget/main.js
patch
|
blob
|
history
diff --git
a/qml/lichvietwidget/main.js
b/qml/lichvietwidget/main.js
index
67a0f63
..
1102377
100644
(file)
--- a/
qml/lichvietwidget/main.js
+++ b/
qml/lichvietwidget/main.js
@@
-5,9
+5,9
@@
var IMGS_RESOURCE_PATH = "/opt/lichvietwidget/qml/lichvietwidget/imgs/";
function refresh(day_center_img, day_left_img, day_right_img, month_left_img, month_right_img, year_1_img, year_2_img,year_3_img,year_4_img, txt_detail) {
var date = new Date();
function refresh(day_center_img, day_left_img, day_right_img, month_left_img, month_right_img, year_1_img, year_2_img,year_3_img,year_4_img, txt_detail) {
var date = new Date();
- var lunar = getLunarDate(date.getDate(),date.getMonth(),date.getFullYear());
+ var lunar = getLunarDate(date.getDate(),date.getMonth()+1,date.getFullYear());
var lunarCanChi = getCanChi(lunar);
var lunarCanChi = getCanChi(lunar);
- var xday = lunar.day; //need to replace it by lunar day
+ var xday = lunar.day;
var xmonth = lunar.month;
var xyear = lunar.year;
var xmonth = lunar.month;
var xyear = lunar.year;