Fixed a bug related with locale and the use of date in the remote host