summaryrefslogtreecommitdiffstats
path: root/camera
diff options
context:
space:
mode:
authorAngus Kong <shkong@google.com>2011-12-14 13:51:43 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2011-12-14 13:51:43 -0800
commit104d8eb066b5e184ffdb0a2652fbaa6958aec01d (patch)
tree7ab3a30b2b662700a1f7e1004e265dd96f003b24 /camera
parentbd514759c4fd01cecad887811d91817f743913f1 (diff)
parent3500401fabe4e4ce8f9e6e1cc503fdc87b3a2222 (diff)
downloadhardware_ti_omap4xxx-104d8eb066b5e184ffdb0a2652fbaa6958aec01d.zip
hardware_ti_omap4xxx-104d8eb066b5e184ffdb0a2652fbaa6958aec01d.tar.gz
hardware_ti_omap4xxx-104d8eb066b5e184ffdb0a2652fbaa6958aec01d.tar.bz2
am 3500401f: am 82a05e51: Use local time in EXIF.
* commit '3500401fabe4e4ce8f9e6e1cc503fdc87b3a2222': Use local time in EXIF.
Diffstat (limited to 'camera')
-rw-r--r--camera/OMXCameraAdapter/OMXExif.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/camera/OMXCameraAdapter/OMXExif.cpp b/camera/OMXCameraAdapter/OMXExif.cpp
index 32bfd7d..c244c40 100644
--- a/camera/OMXCameraAdapter/OMXExif.cpp
+++ b/camera/OMXCameraAdapter/OMXExif.cpp
@@ -333,7 +333,7 @@ status_t OMXCameraAdapter::setupEXIF()
if ( OMX_TI_TagReadWrite == exifTags->eStatusDateTime )
{
int status = gettimeofday (&sTv, NULL);
- pTime = gmtime (&sTv.tv_sec);
+ pTime = localtime (&sTv.tv_sec);
if ( ( 0 == status ) && ( NULL != pTime ) )
{
snprintf(( char * ) sharedPtr, EXIF_DATE_TIME_SIZE,
@@ -535,7 +535,7 @@ status_t OMXCameraAdapter::setupEXIF_libjpeg(ExifElementsTable* exifTable,
if ((NO_ERROR == ret)) {
int status = gettimeofday (&sTv, NULL);
- pTime = gmtime (&sTv.tv_sec);
+ pTime = localtime (&sTv.tv_sec);
char temp_value[EXIF_DATE_TIME_SIZE + 1];
if ((0 == status) && (NULL != pTime)) {
snprintf(temp_value, EXIF_DATE_TIME_SIZE,