fix problem with dates in react template