fixes Bug 972037 - switched to non-destructive json datetime encoding

switched to non-destructive json datetime encoding using the JSONEncode object in both PG and HB