videos recorded with camera-app show up in wrong day

Bug #1433739 reported by Bill Filler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gallery-app
Fix Released
High
Arthur Mello
gallery-app (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

It appears the timestamp used for videos taken with the camera-app uses UTC instead of Local Time. This causes them to show up in the next day sometimes.

Steps to reproduce:
1) Set timezone to Boston (UTC - 4) or some other timezone behind UTC
2) Record a video with the camera-app when the local time is > 20:00

Expected results:
video should show up in the current day's Event in the event view

Actual results:
video shows up in the next day in the Event view

Related branches

Arthur Mello (artmello)
Changed in gallery-app:
status: New → Confirmed
assignee: nobody → Arthur Mello (artmello)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Checking with other videos I got, and also videos recorded with Android, the encoded date is always in UTC.

With that, the only way to present something that is consistent, is by presenting the timeline by calculating the UTC +- current timezone, and then matching that with dates.

Otherwise you can always end up in weird situations by recording videos and then changing timezones (future and past).

Arthur Mello (artmello)
Changed in gallery-app:
importance: Undecided → High
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gallery-app - 0.0.67+15.04.20150409-0ubuntu1

---------------
gallery-app (0.0.67+15.04.20150409-0ubuntu1) vivid; urgency=medium

  [ Arthur Mello ]
  * Change thumbnail's image provider header for videos on
    SingleMediaViewer (LP: #1430357)
  * Convert video exposure time from UTC to local time when the event
    header for the video is created. The video exposure time will still
    be stored using UTC in the DB (LP: #1433739)

  [ CI Train Bot ]
  * New rebuild forced.

gallery-app (0.0.67+15.04.20150330~rtm-0ubuntu1) 14.09; urgency=medium

  [ Arthur Mello ]
  * Add the "at" param to the calls of thumbnailer image provider to
    make sure the images will be updated after the user edit them

  [ CI Train Bot ]
  * New rebuild forced.
 -- CI Train Bot <email address hidden> Thu, 09 Apr 2015 17:57:22 +0000

Changed in gallery-app (Ubuntu):
status: New → Fix Released
Bill Filler (bfiller)
Changed in gallery-app:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.