[Pkg-mozext-commits] [sage-extension] 14/49: fix non-standard puDate parsing error
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag sage_1_3_10
in repository sage-extension.
commit ef7b5b2cd069dede775200c14c489f40f22c0f40
Author: Peter Andrews <petea at jhu.edu>
Date: Thu May 12 20:14:36 2005 +0000
fix non-standard puDate parsing error
---
src/sage/content/feedlib.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sage/content/feedlib.js b/src/sage/content/feedlib.js
index d357d2c..df5e5a0 100644
--- a/src/sage/content/feedlib.js
+++ b/src/sage/content/feedlib.js
@@ -421,7 +421,7 @@ FeedItem.prototype.getPubDate = function() {
function rfc822ToJSDate(date_str) {
date_array = date_str.split(" ");
// check for two digit year
- if(date_array[3].length == 2) {
+ if(date_array.length == 6 && date_array[3].length == 2) {
// convert to four digit year with a pivot of 70
if(date_array[3] < 70) {
date_array[3] = "20" + date_array[3];
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git
More information about the Pkg-mozext-commits
mailing list