Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make_release.py won't work for August dates #299

Closed
espeed opened this issue Aug 7, 2011 · 1 comment
Closed

make_release.py won't work for August dates #299

espeed opened this issue Aug 7, 2011 · 1 comment

Comments

@espeed
Copy link

espeed commented Aug 7, 2011

Hi Armin -

I am using your make_release.py script in Bulbs, and the script was breaking when I was trying to make a release today because the parse_date function was replacing the the "st" in August (this may be an issue for other months too):

def parse_date(string):
string = string.replace('th ', ' ').replace('nd ', ' ')
.replace('rd ', ' ').replace('st ', ' ')
return datetime.strptime(string, '%B %d %Y')

  • James
@mitsuhiko
Copy link
Contributor

Heh. Good point. Will fix that :D That was really just a quick hack as you can see :)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants