I needed to convert the Sage 300 time field to locale time in a SQL query. I put the following together from a Stack Overflow post. It, however, doesn't take daylight savings into account (and apparently that's not the easiest thing to do).
SELECT DATEADD…