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 #4

Open
shirink opened this issue Jan 17, 2014 · 0 comments
Open

DateTime Parse #4

shirink opened this issue Jan 17, 2014 · 0 comments

Comments

@shirink
Copy link

shirink commented Jan 17, 2014

Salam
As I wonder the Parsi::DateTime.parse doesn't set the time.

    it "should have valid time" do
        Parsi::DateTime.parse("1392-01-12T04:04:04+07:00").strftime("%H:%M").should == "04:04"
    end

The test fails and the output is

1) ParsiDate when created should have valid time
     Failure/Error:Parsi::DateTime.parse("1392-01-12T04:04:04+07:00").strftime("%H:%M").should == "04:04"
       expected: "04:04"
            got: "00:00" (using ==)
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

1 participant