Seeing an issue where the output of FORMATDATETIME appears to be incorrect for a particular value:
SET @date = '2019-03-10 02:00:00';SELECT FORMATDATETIME(@date, 'yyyy-MM-dd HH:mm:ss'), YEAR(@date), MONTH(@date), DAY(@date), HOUR(@date);
The hour is being output as "03" instead of the expected value of "02".
I'm running FORMATDATETIME for every hour of the year 2019, and only see this issue happening for one specific date in 2019 as far as I can tell: 2019-03-10 02:00:00.
I also tried for the year 2020, and a different date produces the incorrect output:
SET @date = '2020-03-08 02:00:00';SELECT FORMATDATETIME(@date, 'yyyy-MM-dd HH:mm:ss'), YEAR(@date), MONTH(@date), DAY(@date), HOUR(@date);
I am running version 1.4.197 (also tried on 1.4.199).