fixed an issue with datetime in chat sample