Changed datetime string to timestamp library