From 82a05e51a21a093bab579f8af8b4b8bec0542f90 Mon Sep 17 00:00:00 2001 From: Angus Kong Date: Wed, 14 Dec 2011 20:59:26 +0800 Subject: Use local time in EXIF. UTC is only used in GPS time stamp and local time is used in other date/time field. bug: 5757809 Change-Id: I8c728dca9db003c6a750df300d993e3615ef71c8 --- camera/OMXCameraAdapter/OMXExif.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'camera') diff --git a/camera/OMXCameraAdapter/OMXExif.cpp b/camera/OMXCameraAdapter/OMXExif.cpp index 9744cf4..4c5e555 100755 --- 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, @@ -533,7 +533,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, -- cgit v1.1