Skip to content

Commit 904ede1

Browse files
author
joeltaylor
committed
Correct date formating
1 parent 718b77e commit 904ede1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/news.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ router.
142142
} else if (item.date == moment.utc(Date.now()).subtract(1, 'days').format('LL')){
143143
item.date = 'Yesterday'
144144
}else{
145-
item.date = moment(item.date).format('LL');
145+
item.date = moment(item.date).format('dddd, LL');
146146
}
147147
});
148148
// There are strings and integers here - not so good.

0 commit comments

Comments
 (0)