Merge branch 'master' of github.com:webnotes/wnframework
This commit is contained in:
commit
afdd13e5e8
1 changed files with 1 additions and 1 deletions
|
|
@ -69,7 +69,7 @@ wn.datetime = {
|
|||
get_diff: function(d1, d2) {
|
||||
if(typeof d1=='string') d1 = dateutil.str_to_obj(d1);
|
||||
if(typeof d2=='string') d2 = dateutil.str_to_obj(d2);
|
||||
return ((d1-d2) / 86400000);
|
||||
return Math.round((d1-d2) / 86400000);
|
||||
},
|
||||
|
||||
get_day_diff: function(d1, d2) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue