switch from date to long timestamps