]> source.dussan.org Git - gitea.git/commit
Fixing MSSQL timestamp type (#5511)
authorChristopher <chdxD1@users.noreply.github.com>
Tue, 11 Dec 2018 02:05:24 +0000 (03:05 +0100)
committerLunny Xiao <xiaolunwen@gmail.com>
Tue, 11 Dec 2018 02:05:24 +0000 (10:05 +0800)
commit64680b72bd1b0a0fc164296ff0cc7319ae7dc4ca
tree0d196070ce83c03e3ebcbdddc4eec097df5e4c12
parent205a53364532405a6b2848cee319d7f1e5c56f16
Fixing MSSQL timestamp type (#5511)

MSSQL is using the wrong type here which results in a strconv.ParseInt: parsing "2018-12-07T00:00:00Z": invalid syntax error.
The added datediff(SECOND, '19700101', x) results in the unix timestamp to be returned.

Signed-off-by: Christopher Dziomba <christopher.dziomba@gmail.com>
models/user_heatmap.go