Fixed datetime support error on Mac OS