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

DateTime.parse("Wednesday 12:00") format is always returning midnight #418

Closed
ptrela opened this issue Apr 8, 2024 · 1 comment
Closed

Comments

@ptrela
Copy link
Contributor

ptrela commented Apr 8, 2024

Hello, we're using Timecop in our project and we have a problem with DateTime.parse("Wednesday 15:00") format in RSpec.
It returns midnight hour which is making our specs failed.

Without using Timecop DateTime.parse is working properly.

How to recreate:

> DateTime.parse("Tuesday 15:00")
Tue, 05 Mar 2024 00:00:00 +0000

I've added a PullRequest with Specs with my idea how to fix it.
#417
Sorry if i added this issue and PR in a wrong way, tried to do my best following the Readme.MD instructions.

After the fix we are receiving result like this:

DateTime.parse("Tuesday 15:00")
Tue, 05 Mar 2024 15:00:00 +0000
@joshuacronemeyer
Copy link
Collaborator

Fixed by PR #417

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

No branches or pull requests

2 participants