SVY-7540 fix js date related issues