format datetime on frontend fix #397