diff options
author | Wu-cheng Li <wuchengli@google.com> | 2011-02-20 17:01:31 +0800 |
---|---|---|
committer | Wu-cheng Li <wuchengli@google.com> | 2011-02-20 17:04:33 +0800 |
commit | 2c6102e3f2da0b38467aa51f8cd1d7acd9310cfc (patch) | |
tree | 983e7ba94036afafcec905beb11a4480c30f7cd0 /libcamera | |
parent | e17bfa7bcf7023d8cdc057a14511d621e8abd2be (diff) | |
download | device_samsung_crespo-2c6102e3f2da0b38467aa51f8cd1d7acd9310cfc.zip device_samsung_crespo-2c6102e3f2da0b38467aa51f8cd1d7acd9310cfc.tar.gz device_samsung_crespo-2c6102e3f2da0b38467aa51f8cd1d7acd9310cfc.tar.bz2 |
Fix the bug that the month of gps timestamp exif is off by 1.
bug:3468433
Change-Id: Iab4132bdf6515a4fb93e56c2ec31b04ea260f7be
Diffstat (limited to 'libcamera')
-rwxr-xr-x | libcamera/SecCamera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcamera/SecCamera.cpp b/libcamera/SecCamera.cpp index 68e29fa..e17c878 100755 --- a/libcamera/SecCamera.cpp +++ b/libcamera/SecCamera.cpp @@ -3095,7 +3095,7 @@ void SecCamera::setExifChangedAttribute() mExifInfo.gps_timestamp[2].num = tm_data.tm_sec; mExifInfo.gps_timestamp[2].den = 1; snprintf((char*)mExifInfo.gps_datestamp, sizeof(mExifInfo.gps_datestamp), - "%04d:%02d:%02d", tm_data.tm_year + 1900, tm_data.tm_mon, tm_data.tm_mday); + "%04d:%02d:%02d", tm_data.tm_year + 1900, tm_data.tm_mon + 1, tm_data.tm_mday); mExifInfo.enableGps = true; } else { |