fixed bug format date

[#188]