Comparing version 0.2.5 to 0.2.6
# Changelog | ||
## 0.2.6 | ||
* Fix 'h' and 'hh' `toFormat` tokens for midnight | ||
## 0.2.5 | ||
* Better shiftTo behavior for durations with floating point components | ||
* Better `shiftTo` behavior for durations with floating point components | ||
@@ -7,0 +11,0 @@ ## 0.2.4 |
{ | ||
"name": "luxon", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Immutable date wrapper", | ||
@@ -5,0 +5,0 @@ "author": "Isaac Cambron", |
@@ -164,5 +164,5 @@ import { DateTime } from '../datetime'; | ||
case 'h': | ||
return this.num(dt.hour === 12 ? 12 : dt.hour % 12); | ||
return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12); | ||
case 'hh': | ||
return this.num(dt.hour === 12 ? 12 : dt.hour % 12, 2); | ||
return this.num(dt.hour % 12 === 0 ? 12 : dt.hour % 12, 2); | ||
case 'H': | ||
@@ -169,0 +169,0 @@ return this.num(dt.hour); |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
637440