diff options
author | Angus Kong <shkong@google.com> | 2011-12-14 20:59:26 +0800 |
---|---|---|
committer | Angus Kong <shkong@google.com> | 2011-12-14 20:59:26 +0800 |
commit | 82a05e51a21a093bab579f8af8b4b8bec0542f90 (patch) | |
tree | 38fe66ecc4978be222f1bdf2609f31e5eb73b2ec /camera/OMXCameraAdapter/OMXExif.cpp | |
parent | 449e98a958753e6ae8f16b923596af0c6783ff8a (diff) | |
download | hardware_ti_omap4xxx-82a05e51a21a093bab579f8af8b4b8bec0542f90.zip hardware_ti_omap4xxx-82a05e51a21a093bab579f8af8b4b8bec0542f90.tar.gz hardware_ti_omap4xxx-82a05e51a21a093bab579f8af8b4b8bec0542f90.tar.bz2 |
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
Diffstat (limited to 'camera/OMXCameraAdapter/OMXExif.cpp')
-rwxr-xr-x | camera/OMXCameraAdapter/OMXExif.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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, |