Fix: invalid date on Firefox, Safari