0

我究竟如何使用以下代码来抵消 +1hr 的 DST:

SELECT datetime 
FROM events 
WHERE datetime > NOW() 
GROUP BY datetime 
ORDER BY datetime

从我在互联网上看到的各种示例中,我无法完全弄清楚我是如何做到这一点的,例如:

SELECT CONVERT_TZ(datetime,'+00:00','+01:00')

干杯!

4

1 回答 1

0

Try this:

SELECT CONVERT_TZ(datetime,'+00:00','+01:00') as conv_dt
FROM events
WHERE datetime > NOW() 
GROUP BY conv_dt 
ORDER BY conv_dt;
于 2013-07-29T13:37:07.250 回答