Modification time shifted by +1 hour after Android-to-Mac transfer

Abierto
#20 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
macos, swift
Área
backend, desktop

Línea de trabajo

Start by locating the device-to-Mac transfer path that reads MTP DateModified timestamps and how it converts them to macOS dates. Compare the parsed value with the issue’s local time and Unix timestamp examples to identify where the one-hour shift is introduced. Done means a downloaded file retains the original modification time; the issue does not name files or tests, so first map the transfer and timestamp handling code.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Environment
SwiftMTP 1.2.5 (Build 30)
macOS 27.2.0, Build 26B123
Mac mini M4 Pro
Xiaomi Pad 8 with HyperOS
Mac and tablet configured for CET / GMT+01:00
Direct USB-C connection
Problem

A file transferred from the Mac to the Xiaomi Pad 8 and then downloaded back to the Mac has a modification time shifted forward by exactly one hour.

Reproduction
Original Mac file timestamp: 2026-10-31 07:13:29 CET
Upload file to Xiaomi Pad 8 with SwiftMTP.
SwiftMTP displays the file on the tablet as 31 Oct 2026 at 07:13.
Download the file back to a new Mac folder.
Downloaded timestamp: 2026-10-31 08:13:29 CET
Absolute timestamps
Original Unix timestamp: 1793427209
Downloaded Unix timestamp: 1793430809
Difference: +3600 seconds
Integrity result

Both files are exactly 1,000,000,000 bytes and have the same SHA-256 checksum:

453f885f4aadad9c5587d82d65424d0e021c2922af1465fb0fff0c1e938c14af

Expected

The downloaded file should retain the original modification time without a one-hour shift.

Observation

The local MTP time 07:13:29 appears to be interpreted as 07:13:29 UTC during download. macOS then displays it as 08:13:29 CET.

The tablet was explicitly configured for GMT+01:00 with automatic date, time and time-zone detection enabled. Repeating the test did not change the result.

Could you please check the parsing of MTP DateModified timestamps during device-to-Mac transfers?

Image Image Image Image
Lenguaje dominante
Swift
Estrellas
481
Forks
11
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de Neighbor-Z/SwiftMTP

Todos los issues de Neighbor-Z/SwiftMTP

Issues similares

Más issues de Swift

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.