Permalink
Browse files

only format edited_date if present

  • Loading branch information...
1 parent a1a29ea commit 2bb26b488ff300a026a868c94318d42bc894a1bf @mastbaum committed Jul 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/shows.js
View
@@ -615,7 +615,9 @@ exports.fec = function(doc, req) {
d.timestamp_ecal = (new Date(d.timestamp_ecal)).toLocaleString();
d.timestamp_generated = (new Date(d.timestamp_generated)).toLocaleString();
- d.edited_date = (new Date(d.edited_date)).toLocaleString();
+ if (d.edited_date) {
+ d.edited_date = (new Date(d.edited_date)).toLocaleString();
+ }
d.chip_ids = [0,1,2,3,4,5,6,7];
d.channel_ids = [];

0 comments on commit 2bb26b4

Please sign in to comment.