浏览代码

Fixed datetime.js

version-14
Akhilesh Darjee 12 年前
父节点
当前提交
db8344a0fd
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. +1
    -0
      public/js/legacy/utils/datetime.js

+ 1
- 0
public/js/legacy/utils/datetime.js 查看文件

@@ -93,6 +93,7 @@ wn.datetime = {
add_months: function(d, months) {
dt = dateutil.str_to_obj(d)
months = cint(months);
new_dt = new Date(dt.getFullYear(), dt.getMonth()+months, dt.getDate())
if(new_dt.getDate() != dt.getDate()) {
// month has changed, go the last date of prev month


正在加载...
取消
保存