fixing UNIX_TIMESTAMP() for mssql
Merge pull request #4099 from owncloud/fixing-unix-timestamp-mssql-master

fixing UNIX_TIMESTAMP() for mssql