@fable-org/fable-library-ts 2.0.0-beta.5 → 2.0.0-beta.6
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 +6 -0
- package/DateOffset.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## Unreleased
|
|
9
9
|
|
|
10
|
+
## 2.0.0-beta.6 - 2025-12-26
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
* [JS/TS] Fix #4305 `DateTimeOffset.Now` returns wrong time (by @ncave)
|
|
15
|
+
|
|
10
16
|
## 2.0.0-beta.5 - 2025-11-19
|
|
11
17
|
|
|
12
18
|
### Changed
|
package/DateOffset.ts
CHANGED
|
@@ -143,7 +143,7 @@ export function create(
|
|
|
143
143
|
export function now() {
|
|
144
144
|
const date = new Date();
|
|
145
145
|
const offset = date.getTimezoneOffset() * -60_000;
|
|
146
|
-
return DateTimeOffset(date.getTime()
|
|
146
|
+
return DateTimeOffset(date.getTime(), offset);
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
export function utcNow() {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"type": "module",
|
|
5
5
|
"name": "@fable-org/fable-library-ts",
|
|
6
|
-
"version": "2.0.0-beta.
|
|
6
|
+
"version": "2.0.0-beta.6",
|
|
7
7
|
"description": "Core library used by F# projects compiled with fable.io",
|
|
8
8
|
"author": "Fable Contributors",
|
|
9
9
|
"license": "MIT",
|