finally figured out the weird date string problem