From 3cdf4fd4100763ff0a2c0d8bf45f8b9b49d79991 Mon Sep 17 00:00:00 2001 From: Oliver Urs Lenz Date: Sat, 5 Jan 2019 19:19:46 +0100 Subject: [PATCH] reverts bug involving strftime accidentally introduced in feed importer --- pelican/tools/pelican_import.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pelican/tools/pelican_import.py b/pelican/tools/pelican_import.py index 346fca163..e56868110 100755 --- a/pelican/tools/pelican_import.py +++ b/pelican/tools/pelican_import.py @@ -8,6 +8,7 @@ import re import subprocess import sys +import time from codecs import open from collections import defaultdict @@ -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]