projects
/
platform
/
core
/
api
/
webapi-plugins.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
274535e
)
[Exif] Added missing tzset() before localtime_r()
author
Piotr Kosko
<p.kosko@samsung.com>
Thu, 11 Jun 2015 09:21:57 +0000
(11:21 +0200)
committer
Piotr Kosko
<p.kosko@samsung.com>
Thu, 11 Jun 2015 09:24:07 +0000
(11:24 +0200)
[Feature] For portable code tzset(3) should be called before localtime_r().
[Verification] TCT passrate 100%
Change-Id: I8a221f81a5e9211ac640f87f9c52a3cff63e3e94
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
src/exif/exif_util.cc
patch
|
blob
|
history
diff --git
a/src/exif/exif_util.cc
b/src/exif/exif_util.cc
index 69677a89329bb1707ab1404d43499bd91e34790a..0061856c82e7650caf894e493bd05d87c083c013 100755
(executable)
--- a/
src/exif/exif_util.cc
+++ b/
src/exif/exif_util.cc
@@
-394,6
+394,7
@@
time_t ExifUtil::convertToTimeT(int year, int month, int day,
int hour, int min, int sec) {
struct tm timeinfo = { 0 };
time_t tmp_time = 0;
+ tzset();
localtime_r(&tmp_time, &timeinfo);
timeinfo.tm_year = year - 1900;