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

[parser] crashlogs: extract timezone from image #78

Open
cvandeplas opened this issue Aug 28, 2024 · 6 comments
Open

[parser] crashlogs: extract timezone from image #78

cvandeplas opened this issue Aug 28, 2024 · 6 comments
Labels
bug Something isn't working parsers

Comments

@cvandeplas
Copy link
Contributor

The case (metadata) needs to know the timezone of the phone.
Some filenames contain a timestamp, in the case of crashlogs it's local time. So to parse the date properly we need to know the phone timezone.

@cvandeplas cvandeplas added bug Something isn't working parsers labels Aug 28, 2024
@cvandeplas
Copy link
Contributor Author

cvandeplas commented Aug 30, 2024

Annoyingly, if we find a place where the current timezone is configured at sysdiagnose creation time, it might still be different than for example the crashlog timestamp.
Why? The owner of the phone might have been travelling at a certain point in time, and be in a different timezone.

However extracting the latest known timezone would definitely help to better estimate reality

@cvandeplas
Copy link
Contributor Author

powerlogs contain(some) info about timezone

@adulau
Copy link

adulau commented Sep 1, 2024

Launch Time: of the crash the TZ is not set ?

@cvandeplas
Copy link
Contributor Author

The summaries/crashes_and_spins.log file contains a list of crashlog files that were present on the phone, but may not be included in the sysdiagnose tar.gz because they are too old.
The timestamp of the crashlog filename seems to be based on local time.

However, the crashlog itself (ips file) contain a timestamp with timezone.
So we're currently able to capture the exact time for all these IPS files, but need to do lookup-magic if we want to discover the timezone of the older crashes from which we do not have the IPS files in the sysdiagnose archive.

@dario-br
Copy link
Contributor

What about the filename of the sysdiagnose file itself? It contains the the timestamp in iso format, where you can see the time deviation from UTC. Would that work?

@cvandeplas
Copy link
Contributor Author

For now we extract the time and timezone from the sysdiagnose.log file, this is captured in the this.sysdiagnose_creation_datetime variable. However, as explained, this is the timezone at time of sysdiagnose creation, which is not necessarily the same as the timezone when the crash occurred.

@dario-br dario-br changed the title extract timezone from image [parser] crashlogs: extract timezone from image Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working parsers
Projects
None yet
Development

No branches or pull requests

3 participants