Use local timezone when writing and reading datetime. Datetime in database is also in local timezone.
On Ubuntu freetds should be installed from freetds-dev package. Updating readme.