diff --git a/src/mvt/android/modules/androidqf/files.py b/src/mvt/android/modules/androidqf/files.py index baec7a56..dbca3a71 100644 --- a/src/mvt/android/modules/androidqf/files.py +++ b/src/mvt/android/modules/androidqf/files.py @@ -107,7 +107,11 @@ def check_indicators(self) -> None: # TODO: adds SHA1 and MD5 when available in MVT def run(self) -> None: - device_timezone = ZoneInfo(self._get_device_timezone()) + if timezone := self._get_device_timezone(): + device_timezone = ZoneInfo(timezone) + else: + self.log.warning("Unable to determine device timezone, using UTC") + device_timezone = ZoneInfo("UTC") for file in self._get_files_by_pattern("*/files.json"): rawdata = self._get_file_content(file).decode("utf-8", errors="ignore")