Skip to content

Commit

Permalink
Fixed #3836 (#3840)
Browse files Browse the repository at this point in the history
  • Loading branch information
ncave authored Jun 12, 2024
1 parent e2285d6 commit 98fdb11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/Fable.Cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

### Fixed

* [JS/TS] Fixed DateTime.MinValue, DateTime.MaxValue (#3836) (by @ncave)

## 4.19.0 - 2024-06-10

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions src/fable-library-ts/Date.ts
Original file line number Diff line number Diff line change
Expand Up @@ -498,12 +498,12 @@ export function getTicks(date: IDateTime | IDateTimeOffset) {

export function minValue() {
// This is "0001-01-01T00:00:00.000Z", actual JS min value is -8640000000000000
return DateTime(-62135596800000, DateKind.Unspecified);
return DateTime(-62135596800000, DateKind.UTC);
}

export function maxValue() {
// This is "9999-12-31T23:59:59.999Z", actual JS max value is 8640000000000000
return DateTime(253402300799999, DateKind.Unspecified);
return DateTime(253402300799999, DateKind.UTC);
}

export function parseRaw(input: string): [Date, Offset] {
Expand Down

0 comments on commit 98fdb11

Please sign in to comment.