videos recorded with camera-app show up in wrong day
Bug #1433739 reported by
Bill Filler
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
lp:~artmello/gallery-app/gallery-app-video_timezone
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Ugo Riboni (community): Needs Fixing
-
Diff: 144 lines (+59/-9)3 files modifiedsrc/media-object-factory.cpp (+15/-4)
tests/unittests/mediaobjectfactory/CMakeLists.txt (+1/-1)
tests/unittests/mediaobjectfactory/tst_mediaobjectfactory.cpp (+43/-4)
Changed in gallery-app: | |
status: | New → Confirmed |
assignee: | nobody → Arthur Mello (artmello) |
Changed in gallery-app: | |
importance: | Undecided → High |
status: | Confirmed → In Progress |
Changed in gallery-app: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
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).