From 70e2c414014f3323d8a52fbcc94ee9e3a92d5d5f 2013-07-09 06:10:13 From: Brad Reisfeld Date: 2013-07-09 06:10:13 Subject: [PATCH] Corrected a typo in the format string for strftime --- diff --git a/IPython/nbconvert/transformers/sphinx.py b/IPython/nbconvert/transformers/sphinx.py index 111f4c6..156cb9f 100755 --- a/IPython/nbconvert/transformers/sphinx.py +++ b/IPython/nbconvert/transformers/sphinx.py @@ -158,7 +158,7 @@ class SphinxTransformer(ActivatableTransformer): # Use todays date if none is provided. if len(self.publish_date.strip()) == 0: - nb.metadata._draft["date"] = date.today().strftime("%B %-d, %Y") + nb.metadata._draft["date"] = date.today().strftime("%B %d, %Y") else: nb.metadata._draft["date"] = self.publish_date @@ -217,7 +217,7 @@ class SphinxTransformer(ActivatableTransformer): Prompt the user to enter a date """ - default_date = date.today().strftime("%B %-d, %Y") + default_date = date.today().strftime("%B %d, %Y") user_date = console.input("Date (deafults to \"" + default_date + "\"): ") if len(user_date.strip()) == 0: user_date = default_date