Browse Source

Fixed datetime.js

version-14
Akhilesh Darjee 12 years ago
parent
commit
db8344a0fd
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      public/js/legacy/utils/datetime.js

+ 1
- 0
public/js/legacy/utils/datetime.js View File

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


Loading…
Cancel
Save