@fable-org/fable-library-js 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/Date.js +4 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 1.8.0 - 2024-11-19
|
|
11
|
+
|
|
12
|
+
* [JS/TS] Fix `h` in `DateTime.ToString` (@MangelMaxime)
|
|
13
|
+
* [JS/TS] Fix `hh` in `DateTime.ToString` (@MangelMaxime)
|
|
14
|
+
|
|
10
15
|
## 1.7.0 - 2024-11-19
|
|
11
16
|
|
|
12
17
|
### Fixed
|
package/Date.js
CHANGED
|
@@ -145,10 +145,12 @@ function dateToStringWithCustomFormat(date, format, utc) {
|
|
|
145
145
|
cursorPos += tokenLength;
|
|
146
146
|
switch (tokenLength) {
|
|
147
147
|
case 1:
|
|
148
|
-
|
|
148
|
+
const h1Value = hour(localizedDate) % 12;
|
|
149
|
+
result += h1Value ? h1Value : 12;
|
|
149
150
|
break;
|
|
150
151
|
case 2:
|
|
151
|
-
|
|
152
|
+
const h2Value = hour(localizedDate) % 12;
|
|
153
|
+
result += padWithZeros(h2Value ? h2Value : 12, 2);
|
|
152
154
|
break;
|
|
153
155
|
default:
|
|
154
156
|
break;
|
package/package.json
CHANGED