diff options
author | Christopher <chdxD1@users.noreply.github.com> | 2018-12-11 03:05:24 +0100 |
---|---|---|
committer | Lunny Xiao <xiaolunwen@gmail.com> | 2018-12-11 10:05:24 +0800 |
commit | 64680b72bd1b0a0fc164296ff0cc7319ae7dc4ca (patch) | |
tree | 0d196070ce83c03e3ebcbdddc4eec097df5e4c12 /routers/repo/setting_protected_branch.go | |
parent | 205a53364532405a6b2848cee319d7f1e5c56f16 (diff) | |
download | gitea-64680b72bd1b0a0fc164296ff0cc7319ae7dc4ca.tar.gz gitea-64680b72bd1b0a0fc164296ff0cc7319ae7dc4ca.zip |
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>
Diffstat (limited to 'routers/repo/setting_protected_branch.go')
0 files changed, 0 insertions, 0 deletions