[DEV-5546] Change getdate to getUTCDate
parent
53f3e2317e
commit
8f0b12bd3a
|
@ -274,7 +274,7 @@ exports.relativeDate = function( data, value )
|
|||
|
||||
// days
|
||||
case 'd':
|
||||
date_new.setDate( date_new.getDate() + +tval );
|
||||
date_new.setDate( date_new.getUTCDate() + +tval );
|
||||
break;
|
||||
|
||||
// seconds
|
||||
|
|
|
@ -64,7 +64,7 @@ describe( 'relativeDate', function()
|
|||
.to.have.all.members( ['2019-02-28'] );
|
||||
});
|
||||
|
||||
it( 'assert ege case february leap year', function()
|
||||
it( 'assert edge case february leap year', function()
|
||||
{
|
||||
expect( relativeDate( ['2019-12-31'], ['2m'] ) )
|
||||
.to.have.all.members( ['2020-02-29'] );
|
||||
|
|
Loading…
Reference in New Issue