File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ mod test {
250
250
let db = checked_memory_handle ( ) ?;
251
251
let result: Result < bool > = db. query_row (
252
252
"SELECT 1 WHERE ? BETWEEN (now()::timestamp - INTERVAL '1 minute') AND (now()::timestamp + INTERVAL '1 minute')" ,
253
- [ Utc :: now ( ) . naive_utc ( ) ] ,
253
+ [ Local :: now ( ) . naive_local ( ) ] ,
254
254
|r| r. get ( 0 ) ,
255
255
) ;
256
256
assert ! ( result. is_ok( ) ) ;
@@ -262,7 +262,7 @@ mod test {
262
262
let db = checked_memory_handle ( ) ?;
263
263
// TODO(wangfenjin): why need 2 params?
264
264
let result: Result < bool > = db. query_row (
265
- "SELECT 1 WHERE ? BETWEEN (now()::timestamp - INTERVAL '1 minute') AND (now()::timestamp + INTERVAL '1 minute')" ,
265
+ "SELECT 1 WHERE ? BETWEEN (now()::timestamptz - INTERVAL '1 minute') AND (now()::timestamptz + INTERVAL '1 minute')" ,
266
266
[ Utc :: now ( ) ] ,
267
267
|r| r. get ( 0 ) ,
268
268
) ;
You can’t perform that action at this time.
0 commit comments