sysdatetime was returning a utc timestamp, not a localtime timestamp