date should be int of milliseconds