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

%W is not handled properly #380

Closed
joshuacronemeyer opened this issue Feb 27, 2022 · 1 comment · Fixed by #406
Closed

%W is not handled properly #380

joshuacronemeyer opened this issue Feb 27, 2022 · 1 comment · Fixed by #406

Comments

@joshuacronemeyer
Copy link
Collaborator

We see this:

irb(main):001:0> week = '201810'
=> "201810"
irb(main):002:0> Date.strptime(week, "%Y%W")
=> Mon, 05 Mar 2018
irb(main):003:0> require 'timecop'
=> true
irb(main):004:0> Date.strptime(week, "%Y%W")
=> Mon, 01 Jan 2018

Originally posted by @lisbethmarianne in #132 (comment)

@joshuacronemeyer
Copy link
Collaborator Author

I was closing #132 because the behavior referenced in the issue has changed and seems like not a bug anymore, but this comment was highlighting something that doesn't work. we don't handle the :week symbol that this date format causes in _strptime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant