Skip to content

Commit

Permalink
Quick bug fix for date formatting breakage
Browse files Browse the repository at this point in the history
  • Loading branch information
omgimanerd committed Aug 22, 2017
1 parent 1666451 commit d1afaee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/formatter.js
Expand Up @@ -201,7 +201,7 @@ const formatSources = (sources, options) => {
* @return {string}
*/
const formatDate = date => {
if (date.isValid()) {
if (date && date.isValid()) {
const day = date.format('MMM Do, YYYY')
const time = date.format('h:mma z')
return `Published on ${day} at ${time}`
Expand Down

0 comments on commit d1afaee

Please sign in to comment.