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

Calendar.getTimeInMillis() returns a negative value #942

Closed
DeepSilence opened this issue Nov 25, 2016 · 3 comments
Closed

Calendar.getTimeInMillis() returns a negative value #942

DeepSilence opened this issue Nov 25, 2016 · 3 comments

Comments

@DeepSilence
Copy link

DeepSilence commented Nov 25, 2016

Got this bug today. You may be able to reproduce using this :

    from jnius import autoclass
    Calendar = autoclass('java.util.Calendar')

    c = Calendar.getInstance()
    c.setTimeInMillis(1480103863835)
    Logger.info(c.getTimeInMillis()) //  -1659853285
@inclement
Copy link
Member

I'm not sure what's wrong here, perhaps it is a pyjnius problem with converting the type.

@inclement
Copy link
Member

@KeyWeeUsr Do you know if there was some pyjnius fix for numerical type conversions that could affect this?

@AndreMiras
Copy link
Member

Yes recently actually kivy/pyjnius@14fa940
I'm closing, but feel free to reopen in https://github.com/kivy/pyjnius if this is still an issue

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

3 participants