Skip to content

Commit

Permalink
reverts bug involving strftime accidentally introduced in feed importer
Browse files Browse the repository at this point in the history
  • Loading branch information
oulenz committed Jan 5, 2019
1 parent ac90104 commit 3cdf4fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pelican/tools/pelican_import.py
Expand Up @@ -8,6 +8,7 @@
import re
import subprocess
import sys
import time
from codecs import open
from collections import defaultdict

Expand Down Expand Up @@ -563,7 +564,7 @@ def feed2fields(file):
settings = read_settings()
subs = settings['SLUG_REGEX_SUBSTITUTIONS']
for entry in d.entries:
date = (entry.updated_parsed.strftime('%Y-%m-%d %H:%M')
date = (time.strftime('%Y-%m-%d %H:%M', entry.updated_parsed)
if hasattr(entry, 'updated_parsed') else None)
author = entry.author if hasattr(entry, 'author') else None
tags = ([e['term'] for e in entry.tags]
Expand Down

0 comments on commit 3cdf4fd

Please sign in to comment.