plaa / TimeShift-js

Library for mocking JavaScript's Date object
MIT License
65 stars 28 forks source link

Make setter behavior spec compliant #12

Closed zoehneto closed 2 years ago

zoehneto commented 2 years ago

All setter method of Date are supposed to return the epoch seconds (see MDN for the specification). Currently they don't return anything. This breaks day.js, as it expects the epoch seconds to be returned.

plaa commented 2 years ago

Thanks, looks good!

plaa commented 2 years ago

Published as v1.1.2.