I got the following SQL to work on my machine at home. At work when I try this I get "Arithmetic overflow error converting expression to data type int"
(SELECT format(dateadd( second, Time, CAST( '1970-01-01' as datetime ) ), 'yyyyMMdd')) AS created_time FROM Table_Time_Test1
This worked with bigint as the format of the source of the data in the "Time" column
Conversion works on my home pc: 1673380730 => 20230110
The epoch time value is in the format bigint.
Does anyone know why this is happening?