hi, the feed module is awesome. But when I was using this module by typing:
app.get('/rss', function (req, res) {
var feed = new Feed({
title: 'My Feed Title',
description: 'This is my personnal feed!',
link: 'http://example.com/',
image: 'http://example.com/logo.png',
copyright: 'Copyright © 2013 John Doe. All rights reserved',
author: {
name: '',
email: '',
link: ''
}
});
feed.item({
id : 'kpi',
title : 'kpi',
link : 'http://10.154.145.48:3456/packageApp/kpi',
date: 'July 21, 1983 01:15:00'
});
feed.category('Technologie');
res.set('Content-Type', 'text/xml');
res.send(feed.render('rss-2.0'));
});
TypeError: Object July 21, 1983 01:15:00 has no method 'toUTCString'
at rss_2_0 (/Users/shao19/Code/my Coding/node/rss/node_modules/feed/lib/feed.js:242:43)
at Feed.render (/Users/shao19/Code/my Coding/node/rss/node_modules/feed/lib/feed.js:42:24)
at /Users/shao19/Code/my Coding/node/rss/app.js:60:17
at callbacks (/Users/shao19/Code/my Coding/node/rss/node_modules/express/lib/router/index.js:161:37)
at param (/Users/shao19/Code/my Coding/node/rss/node_modules/express/lib/router/index.js:135:11)
I was no idea why it could happy. Bacause when I typing :