fixup: Wrong values are shown in inputpicker
authorArnaud Renevier <a.renevier@samsung.com>
Fri, 20 Mar 2015 04:48:30 +0000 (21:48 -0700)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
commit89eb1bce3b7f52a82cfacd712c8147d52db05561
tree703c93fad2aac39a2ddd49924d47e51a3590fe36
parent94558a74c866d82819e8c89198ed30c291f79c1b
fixup: Wrong values are shown in inputpicker

We get input_date as double. This is the number of milliseconds since
epoch time without considering timezone. But efl needs a tm struct that
considers the timezone. That is: to encode 9am, chromium will send 9 *
3600 * 1000. But if using localtime, that many seconds after epoch may
be for example 5pm, depending on the timezone we are on. The trick here
is to use gmtime instead of localtime.

Bug: http://web.sec.samsung.net/bugzilla/show_bug.cgi?id=12200

Change-Id: Iec67e639ceeca8abe6dd7ed1b3c790df6ff749a6
Signed-off-by: Arnaud Renevier <a.renevier@samsung.com>
Signed-off-by: Dongjun Kim <djmix.kim@samsung.com>
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
tizen_src/ewk/efl_integration/browser/inputpicker/InputPicker.cc
tizen_src/ewk/efl_integration/browser/inputpicker/InputPicker.h
tizen_src/ewk/efl_integration/eweb_view.cc
tizen_src/ewk/efl_integration/eweb_view.h
tizen_src/ewk/efl_integration/web_contents_delegate_efl.cc
tizen_src/ewk/efl_integration/web_contents_delegate_efl.h