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

Title isn't extracted #31

Open
sharukhmohammed opened this issue Sep 12, 2017 · 3 comments
Open

Title isn't extracted #31

sharukhmohammed opened this issue Sep 12, 2017 · 3 comments

Comments

@sharukhmohammed
Copy link

sharukhmohammed commented Sep 12, 2017

Title is not extracted in any case.
screen shot 2017-09-12 at 15 24 21
I've used
compile 'org.threeten:threetenbp:1.3.3'
because
compile 'com.jakewharton.threetenabp:threetenabp:1.0.5'
doesn't work (Look at my other #32 issue I've added)

@sourabh101
Copy link

Did it work?
It was able to recognise date and time, even that required the date to written in certain formats.

@sharukhmohammed
Copy link
Author

sharukhmohammed commented Feb 28, 2018

This uses a custom class LocalDateTime. It doesn't contain any Locale information.
I am currently using this snippet to convert into java.util.Date

public static Date libraryTimeToDateInMillis(LocalDateTime dateTime)
    {
        long epochMilli;
        ZoneId phoneCurrentZone = ZoneId.systemDefault();
        epochMilli =  dateTime.atZone(phoneCurrentZone).toEpochSecond() * 1000;
        if(epochMilli < Calendar.getInstance().getTimeInMillis() )
            epochMilli = Calendar.getInstance().getTimeInMillis();
        return new Date(epochMilli);
    }

@sharukhmohammed
Copy link
Author

screen shot 2018-03-04 at 12 10 11

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