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

オープン
#20 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
macos, swift
領域
backend, desktop

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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
主要言語
Swift
スター
481
フォーク
11
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Neighbor-Z/SwiftMTP のほかの issue

Neighbor-Z/SwiftMTP の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。