Repository navigation
v8.3.2
Changes
- fix(timestamp): 🐛 Make toExactHour UTC based and return NullObject for null
Release details
- npm: https://www.npmjs.com/package/@haskou/value-objects/v/8.3.2
- Pull request: #91
- Source branch:
fix/timestamp-exact-hour-null - Version bump:
patch
Pull request notes
toExactHour() rounded using local time, so results depended on the host timezone; it now truncates to the UTC hour. new Timestamp(null) returned the current time; it now returns a NullObject like other value objects, while undefined still means now. Includes tests and docs.