Add check for time of user preference in worker.js