The problem is caused by the timezone setting being different at the
android layer and at the ubuntu layer. The android layer seems to always
use the UTC tz, and that is what it writes in the EXIF tags when it
returns the encoded jpeg data to libhybris.

The attached branch fixes the problem by updating the EXIF tags with the
correct timestamps in qtubuntu-camera, before saving the image to disk
and notifying the apps.

However according to ogra there might be a way to fix this by making sure we 
set the tz in android too when we set it in ubuntu.
<ogra_> phablet@ubuntu-phablet:~$ sudo lxc-console -t0 -nandroid
<ogra_> root@mako:/ # date
<ogra_> Wed Sep 24 10:51:11 GMT 2014
<ogra_> root@mako:/ # setprop persist.sys.timezone Europe/Berlin
<ogra_> root@mako:/ # date
<ogra_> Wed Sep 24 12:52:15 CEST 2014
<ogra_> seems it uses the same notation
<ogra_> (but to verify 100% one would likely need to check the source of bionic 
or so )

The tz names in bionic are as follows:
https://gist.github.com/arpit/1035596

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1371390

Title:
  pictures taken with camera have wrong timestamp

To manage notifications about this bug go to:
https://bugs.launchpad.net/qtubuntu-camera/+bug/1371390/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to