@fable-org/fable-library-js 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 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.js CHANGED
@@ -120,7 +120,7 @@ export function create(year, month, day, h, m, s, ms, offset) {
120
120
  export function now() {
121
121
  const date = new Date();
122
122
  const offset = date.getTimezoneOffset() * -60000;
123
- return DateTimeOffset(date.getTime() - offset, offset);
123
+ return DateTimeOffset(date.getTime(), offset);
124
124
  }
125
125
  export function utcNow() {
126
126
  const date = new Date();
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "private": false,
4
4
  "type": "module",
5
5
  "name": "@fable-org/fable-library-js",
6
- "version": "2.0.0-beta.5",
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",