Skip to content

Commit f000ce3

Browse files
Storages: fix UT ParsePushDownExecutorTest.TimestampColumn when local timezone is UTC (#10136)
ref #6233 Signed-off-by: Lloyd-Pottiger <[email protected]>
1 parent 9fdcc90 commit f000ce3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dbms/src/Storages/tests/gtests_parse_push_down_filter.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -733,9 +733,10 @@ try
733733
// origin_time_stamp: 1802216106174185472
734734

735735
{
736-
// Greater between TimeStamp col and Datetime literal, use local timezone
736+
// Greater between TimeStamp col and Datetime literal, use Asia/Shanghai timezone
737737
auto ctx = TiFlashTestEnv::getContext();
738738
auto & timezone_info = ctx->getTimezoneInfo();
739+
timezone_info.resetByTimezoneName("Asia/Shanghai");
739740
convertTimeZone(origin_time_stamp, converted_time, *timezone_info.timezone, time_zone_utc);
740741
// converted_time: 0
741742

0 commit comments

Comments
 (0)