switched date to raw seconds