##// END OF EJS Templates
Corrected a typo in the format string for strftime
Brad Reisfeld -
Show More
@@ -158,7 +158,7 b' class SphinxTransformer(ActivatableTransformer):'
158
158
159 # Use todays date if none is provided.
159 # Use todays date if none is provided.
160 if len(self.publish_date.strip()) == 0:
160 if len(self.publish_date.strip()) == 0:
161 nb.metadata._draft["date"] = date.today().strftime("%B %-d, %Y")
161 nb.metadata._draft["date"] = date.today().strftime("%B %d, %Y")
162 else:
162 else:
163 nb.metadata._draft["date"] = self.publish_date
163 nb.metadata._draft["date"] = self.publish_date
164
164
@@ -217,7 +217,7 b' class SphinxTransformer(ActivatableTransformer):'
217 Prompt the user to enter a date
217 Prompt the user to enter a date
218 """
218 """
219
219
220 default_date = date.today().strftime("%B %-d, %Y")
220 default_date = date.today().strftime("%B %d, %Y")
221 user_date = console.input("Date (deafults to \"" + default_date + "\"): ")
221 user_date = console.input("Date (deafults to \"" + default_date + "\"): ")
222 if len(user_date.strip()) == 0:
222 if len(user_date.strip()) == 0:
223 user_date = default_date
223 user_date = default_date
General Comments 0
You need to be logged in to leave comments. Login now