Commit: 177c912185290f59db339ab17a7cfde8060e0174

Author: alkemann | Date: 2009-11-17 06:01:05 +0100
Date.parse() for custom couch view returns null, change to just created field for `Paste`
diff --git a/models/Paste.php b/models/Paste.php index 56a3c34..26b5f23 100644 --- a/models/Paste.php +++ b/models/Paste.php @@ -71,7 +71,7 @@ class Paste extends \lithium\data\Model { 'map' => 'function(doc) { if (doc.permanent == "1") { var preview = String.substring(doc.content, 0, 100); - emit(Date.parse(doc.created), { + emit(doc.created, { author:doc.author, language:doc.language, preview: preview, created: doc.created });