This commit does the actual work of formatting recent dates as weekday names and updating the format when the date is sufficiently far in the past. Also, silence a bogus jslint warning. (imported from commit 503286fbd9c1e33a81cc7d78cf8d08d5e7f78c1a)