-
Notifications
You must be signed in to change notification settings - Fork 222
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
Many dates read from UFDR can be decoded using a wrong timezone #1879
Comments
Looking at the code, I found that this issue was caused by the usage of The original date in the example was "2020-05-18T18:06:19.000-03:00".
The correct one is the first. It should always be tried before the second, as the latter is a substring of the former. |
Good catch! Thanks for investigating this @tc-wleite! Seems |
I am inspecting ~1000 UFDRs, generated by different users, using different Cellebrite programs versions, including the most recent ones, to see all date formats present and how frequently each one appears. |
This test was a bit overkill :-)
I will submit a PR fixing this issue. |
Thank you @tc-wleite! |
Always try DateFormats in the same order, to avoid timezone loss (#1879)
Hi @tc-wleite. I understood when df2 is used, all remaining df1 dates could be parsed using it then. Do you think this issue is enough to roll a 4.1.5 fixing release? |
If you think this is common (and not rare), we can think about publishing a new release, since, in my opinion, silent issues producing wrong results are worse than issues missing results or explicit ones (aborting bugs, infinite loops, etc). |
Correct, as it seems that there are no more dates using df3 to df6 (at least in the UFDRs I used to test).
Well, I think it is quite common.
In most files, there a lot of "df1 dates" in the beginning. |
Thanks! And about df2 dates, does Cellebrite software display some timezone for them? We are using local timezone for conversion right? |
Great question! |
The time zone to be displayed is configurable (I use UTC+0, but it can be set to another time zone or to the device's timezone). But as this is dinamic, these options don't affect how the extracted data is interpreted (and written in the report.xml).
I checked a few cases, and we are using UTC+0, which seems correct, as the dates shown in Cellebrite tools match with the ones present by IPED. |
Thank you @tc-wleite for checking!
I was out of my computer, so I couldn't check, sorry... |
It was important to check this, as it could lead to another hard-to-notice issue. But it seems to be consistent now. |
This was reported by another user and took me a while to figure it out, as it seems to be a rare issue.
In that particular case, there was a question about the calls made in a very specific period of time, and the results taken from IPED were different from the ones shown by CellebriteReader (opening the UFDR directly).
There were several calls with wrong dates, but many others with correct values.
An example below:
The text was updated successfully, but these errors were encountered: