Made date handling functions not rely on DST