Closed Bug 1167090 Opened 10 years ago Closed 9 years ago

Timestamps on files (e.g. camera pictures) are incorrect when read over MTP

Categories

(Firefox OS Graveyard :: MTP/UMS, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5?, firefox41 fixed)

RESOLVED FIXED
blocking-b2g 2.5?
Tracking Status
firefox41 --- fixed

People

(Reporter: marcia, Assigned: dhylands)

References

Details

(Keywords: foxfood, Whiteboard: [spark])

Attachments

(2 files)

Attached image Screenshot of issue seen on Mac (deleted) —
Using the latest private build from https://tools.taskcluster.net/index/artifacts/#gecko.v1.mozilla-central.revision.linux.2f6ea66057fe37794d7fc061407495cdcece5443.aries/gecko.v1.mozilla-central.revision.linux.2f6ea66057fe37794d7fc061407495cdcece5443.aries SD Card is set as the default internal storage. I took some pictures first using internal and then switched to SD card. STR: 1. Open Camera and take some picture 2. Open USB storage and move the pictures to my desktop (Mac) 3. See attached screenshot
[Blocking Requested - why for this release]: Blocking because we should show the correct date for each picture taken.
blocking-b2g: --- → spark?
It is because the current time on the phone is changing.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → DUPLICATE
System date is good. It's MTP that is getting crazy.
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Summary: [Aries] Timestamps on Camera pictures are incorrect → [Aries] Timestamps on Camera pictures are incorrect when read over MTP
Whiteboard: [spark] → [foxfood][spark]
This affects all files (and folders) as far as I can tell -- not just camera pictures. e.g. with my Aries device mounted via MTP, I just created a new folder on it. The brand-new folder's "last modified" date is Jul 4 1993. Several minutes later I created another new folder; that one is displayed with "last modified" Jul 6 1993. Several minutes later, a new folder ended up with "last modified" Jul 7 1993. So they seem to be monotonically increasing, but way faster than real-world time. I wonder if we're somehow mixing up the date vs. the time, somewhere in our MTP code, or something like that...
Summary: [Aries] Timestamps on Camera pictures are incorrect when read over MTP → [Aries] Timestamps on files (e.g. camera pictures) are incorrect when read over MTP
Keywords: foxfood
Whiteboard: [foxfood][spark] → [spark]
This bug affects all MTP implementations and is not specific to Aries.
Summary: [Aries] Timestamps on files (e.g. camera pictures) are incorrect when read over MTP → Timestamps on files (e.g. camera pictures) are incorrect when read over MTP
Component: Gaia::Camera → MTP/UMS
Assignee: nobody → dhylands
Attached patch bug-1167090-mtp-time.patch (deleted) — Splinter Review
Attachment #8626408 - Flags: review?(alchen)
Comment on attachment 8626408 [details] [diff] [review] bug-1167090-mtp-time.patch Review of attachment 8626408 [details] [diff] [review]: ----------------------------------------------------------------- No problem.
Attachment #8626408 - Flags: review?(alchen) → review+
Status: REOPENED → RESOLVED
Closed: 10 years ago9 years ago
Resolution: --- → FIXED
blocking-b2g: spark? → 2.5?
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: