using redis timestamp for date comparion now, as generation period is not equal to 24 hours