From 1cae5c56797e3b3ea088236f3c167210c05d429c 2013-07-22 07:17:43 From: Jörgen Stenarson Date: 2013-07-22 07:17:43 Subject: [PATCH] Fix for #3719 %-d is not a valid strftime format on windows. --- diff --git a/IPython/nbconvert/exporters/exporter.py b/IPython/nbconvert/exporters/exporter.py index bbcc35f..ac36bc4 100755 --- a/IPython/nbconvert/exporters/exporter.py +++ b/IPython/nbconvert/exporters/exporter.py @@ -215,7 +215,7 @@ class Exporter(Configurable): resources['metadata']['name'] = notebook_name modified_date = datetime.datetime.fromtimestamp(os.path.getmtime(filename)) - resources['metadata']['modified_date'] = modified_date.strftime("%B %-d, %Y") + resources['metadata']['modified_date'] = modified_date.strftime("%B %d, %Y") with io.open(filename) as f: return self.from_notebook_node(nbformat.read(f, 'json'), resources=resources,**kw)