@@ -93,7 +93,7 @@ describe("format query", () => {
9393 const queryFormatter = new QueryFormatter ( ) ;
9494 const query = "select ? from table" ;
9595 const formattedQuery = queryFormatter . formatQuery ( query , [
96- new Date ( "2022-05-04 17:37:19" )
96+ new Date ( "2022-05-04 17:37:19 UTC " )
9797 ] ) ;
9898 expect ( formattedQuery ) . toMatchInlineSnapshot (
9999 `"select '2022-05-04 17:37:19' from table"`
@@ -104,7 +104,7 @@ describe("format query", () => {
104104 const queryFormatter = new QueryFormatter ( ) ;
105105 const query = "select ? from table" ;
106106 const formattedQuery = queryFormatter . formatQuery ( query , [
107- new Date ( "1000-01-01 12:21:21" )
107+ new Date ( "1000-01-01 12:21:21 UTC " )
108108 ] ) ;
109109 expect ( formattedQuery ) . toMatchInlineSnapshot (
110110 `"select '1000-01-01 12:21:21' from table"`
@@ -165,7 +165,7 @@ describe("format query", () => {
165165 const queryFormatter = new QueryFormatter ( ) ;
166166 const query = "insert into foo values(?, ?)" ;
167167 const formattedQuery = queryFormatter . formatQuery ( query , [
168- new TimestampTZ ( "2023-12-12 00:00:00" , { timeZone : "UTC" } ) ,
168+ new TimestampTZ ( "2023-12-12 00:00:00 UTC " , { timeZone : "UTC" } ) ,
169169 "str"
170170 ] ) ;
171171 expect ( formattedQuery ) . toMatchInlineSnapshot (
@@ -176,7 +176,7 @@ describe("format query", () => {
176176 const queryFormatter = new QueryFormatter ( ) ;
177177 const query = "insert into foo values(?, ?)" ;
178178 const formattedQuery = queryFormatter . formatQuery ( query , [
179- new TimestampTZ ( "2023-12-12 00:00:00.123" , { timeZone : "UTC" } ) ,
179+ new TimestampTZ ( "2023-12-12 00:00:00.123 UTC " , { timeZone : "UTC" } ) ,
180180 "str"
181181 ] ) ;
182182 expect ( formattedQuery ) . toMatchInlineSnapshot (
@@ -187,7 +187,7 @@ describe("format query", () => {
187187 const queryFormatter = new QueryFormatter ( ) ;
188188 const query = "insert into foo values(?, ?)" ;
189189 const formattedQuery = queryFormatter . formatQuery ( query , [
190- new TimestampNTZ ( "2023-12-12 00:00:00" ) ,
190+ new TimestampNTZ ( "2023-12-12 00:00:00 UTC " ) ,
191191 "str"
192192 ] ) ;
193193 expect ( formattedQuery ) . toMatchInlineSnapshot (
@@ -198,7 +198,7 @@ describe("format query", () => {
198198 const queryFormatter = new QueryFormatter ( ) ;
199199 const query = "insert into foo values(?, ?)" ;
200200 const formattedQuery = queryFormatter . formatQuery ( query , [
201- new TimestampNTZ ( "2023-12-12 00:00:00.123" ) ,
201+ new TimestampNTZ ( "2023-12-12 00:00:00.123 UTC " ) ,
202202 "str"
203203 ] ) ;
204204 expect ( formattedQuery ) . toMatchInlineSnapshot (
0 commit comments