Skip to content

Commit

Permalink
Merge branch 'main' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
rubber-duck-software committed Jun 18, 2024
2 parents 9910d03 + 0a3c3df commit e0a1bd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "iso-fns",
"description": "A string-based date-time library for Javascript.",
"version": "2.0.0-alpha.20",
"version": "2.0.0-alpha.21",
"main": "./cjs/index.js",
"module": "./esm/index.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/fns/instantFns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export const instantFns: IInstantFns = {
},
formatISO9075(instant) {
if (!ES.IsTemporalInstant(instant)) throw new TypeError('invalid receiver')
return instant.slice(0, -1).replace('T', ' ') as Iso.DateTime
return instant.slice(0, -1).replace('T', ' ')
},
toJsDate(instant) {
return new Date(instant)
Expand Down
2 changes: 1 addition & 1 deletion src/types/IInstantFns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export interface IInstantFns {
isEqualOrBefore(instant: Iso.Instant, other: Iso.Instant): boolean
isEqualOrAfter(instant: Iso.Instant, other: Iso.Instant): boolean
toZonedDateTime(instant: Iso.Instant, timeZone: string): Iso.ZonedDateTime
formatISO9075(instant: Iso.Instant): Iso.DateTime
formatISO9075(instant: Iso.Instant): string
toJsDate(instant: Iso.Instant): Date
fromEpochSeconds(epochSeconds: number): Iso.Instant
from(item: any): Iso.Instant
Expand Down

0 comments on commit e0a1bd6

Please sign in to comment.