zol-datetime
Advanced tools
Comparing version 0.1.16 to 0.1.17
@@ -142,3 +142,3 @@ import { Duration, LocalDate, LocalTime, Period, ZoneOffset, ZonedDateTime } from 'js-joda'; | ||
function instantCol(val) { | ||
return Unsafe.unsafeCast(textCol(val.toString()), "TIMESTAMP", instantParser); | ||
return Unsafe.unsafeCast(textCol(val.toString()), "TIMESTAMPTZ", instantParser); | ||
} | ||
@@ -145,0 +145,0 @@ function instantParser(val) { |
@@ -145,3 +145,3 @@ (function (global, factory) { | ||
function instantCol(val) { | ||
return zol.Unsafe.unsafeCast(zol.textCol(val.toString()), "TIMESTAMP", instantParser); | ||
return zol.Unsafe.unsafeCast(zol.textCol(val.toString()), "TIMESTAMPTZ", instantParser); | ||
} | ||
@@ -148,0 +148,0 @@ function instantParser(val) { |
{ | ||
"name": "zol-datetime", | ||
"version": "0.1.16", | ||
"version": "0.1.17", | ||
"description": "SQL Date/Time functionality for Zol", | ||
@@ -49,4 +49,4 @@ "keywords": [ | ||
"js-joda": "^1.5.4", | ||
"zol": "^0.1.16" | ||
"zol": "^0.1.17" | ||
} | ||
} |
@@ -15,3 +15,3 @@ import { Duration, Instant, LocalDate, LocalDateTime, LocalTime, Period } from "js-joda"; | ||
export function instantCol<s>(val: Instant): Col<s, Instant> { | ||
return Unsafe.unsafeCast(<any>textCol(val.toString()), "TIMESTAMP", instantParser); | ||
return Unsafe.unsafeCast(<any>textCol(val.toString()), "TIMESTAMPTZ", instantParser); | ||
} | ||
@@ -18,0 +18,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
774570
Updatedzol@^0.1.17