updated worker to use momentJS for yesterday's date function