Fix bug in Jasmine to allow stub Date object.