Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/database/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Database 在雪花中转换时区问题_Database - Fatal编程技术网

Database 在雪花中转换时区问题

Database 在雪花中转换时区问题,database,Database,当我使用下面的公式 convert_timezone('EST', 'UTC', "Time"::timestamp_ntz) as Time_UTC ,convert_timezone('EST', "LOCAL_TIMEZONE","Time"::timestamp_ntz) as Time_LOCAL 有些行的数据是正确的,有些行的数据是不正确的。谁能告诉我为什么会这样 东部时间是东部“标准”时间,半年东部时间是“白天”时间,所

当我使用下面的公式

convert_timezone('EST', 'UTC', "Time"::timestamp_ntz) as Time_UTC
,convert_timezone('EST', "LOCAL_TIMEZONE","Time"::timestamp_ntz) as Time_LOCAL
有些行的数据是正确的,有些行的数据是不正确的。谁能告诉我为什么会这样

东部时间是东部“标准”时间,半年东部时间是“白天”时间,所以你不应该使用东部时间。相反,你应该使用例如“America/New_York”