在 Aginity Workbench for AWS Redshift 上使用函数to_timestamp()时遇到问题。出于某种我不明白的原因,我尝试创建的时间戳增加了 2 小时。
我一直在寻找解决方案,但找不到类似的东西,有人可以帮我解决这个问题吗?
以下代码:
select
'2017-10-17 10:30:00' test,
to_timestamp('2017-10-17 10:30:00','YYYY-MM-DD HH24:MI:SS') test_converted
检索:
测试 = 2017-10-17 10:30:00
test_converted = 2017-10-17 12:30:00