Modification time shifted by +1 hour after Android-to-Mac transfer
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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?
- Ngôn ngữ chính
- Swift
- Star
- 481
- Fork
- 11
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Neighbor-Z/SwiftMTP
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
Neighbor-Z/SwiftMTP#22 · 1 bình luận ·
-
Crash on Nintendo SwitchĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Neighbor-Z/SwiftMTP#3 · 4 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Neighbor-Z/SwiftMTP#21 · 1 bình luận ·
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 48/100
Neighbor-Z/SwiftMTP#17 · 3 bình luận ·
Tất cả issue của Neighbor-Z/SwiftMTP
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openwatersio/slackwater-ios#976 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
difficulty: beginner documentation help wanted networking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
openwatersio/slackwater#591 ·
Maintainer thường phản hồi trong vòng 1 ngày