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

SMSThread Date information inaccurate #30

Open
GoogleCodeExporter opened this issue Apr 11, 2015 · 2 comments
Open

SMSThread Date information inaccurate #30

GoogleCodeExporter opened this issue Apr 11, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
SMSThread thread ...

for (SMS sms : thread.getAllSMS()) {

    DateFormat formatter;
    formatter = new SimpleDateFormat("MMM-dd HH:mm");
    System.out.println(formatter.format(sms.getDateTime()));


2. What is the expected output? What do you see instead?


 If you have recently added to an older thread, the date of the individual SMS will show as the most recent date rather that the correct date the mesages were sent






Looking at GV Website, it seems that the information simply is not available.  
Time but not dates are displayed.  We need some other means of determining the 
information...


Original issue reported on code.google.com by malone.j...@gmail.com on 3 Feb 2012 at 4:14

@GoogleCodeExporter
Copy link
Author

When SMSParser.getSMSThreads() is called, and the Collection of SMSThreads is 
constructed, the following function is called:

private void addSMSsToThread(SMSThread thread, Element messages)
{
    ...

    if (!time.before(thread.getDate())) {
        time = new Date(time.getTime() - 
            86400000L);
    }

    ...
}

This if statement causes dates to be set back 24 hours. So the dates of some 
SMS messages (which we have already determined will be inaccurate due to the 
way GV displays them) are made to be even more inaccurate.

This if statement should be removed at least until we have a better way to 
determine the date/time of each individual message.

Original comment by ckolek@gmail.com on 21 Feb 2012 at 6:44

@GoogleCodeExporter
Copy link
Author

Thanks ckolek!  I will review that code and make adjustments...

Original comment by malone.j...@gmail.com on 21 Feb 2012 at 6:50

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

No branches or pull requests

1 participant