lcov: Changed the default time zone from UTC to KST
authorGeunsik Lim <geunsik.lim@samsung.com>
Wed, 27 Mar 2019 09:32:29 +0000 (18:32 +0900)
committerwooksong <wook16.song@samsung.com>
Wed, 27 Mar 2019 10:59:10 +0000 (19:59 +0900)
Fixed the issue #1193 and #1275 finally.
https://github.com/nnsuite/nnstreamer/issues/1193#issuecomment-469635177
https://github.com/nnsuite/nnstreamer/issues/1275

This commit is to replace UTC with KST by default in order to display the date format
with Seoul time.  The 'lcov' generates the date format with UTC time zone by default.
So, let's replace UTC with KST.

Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com>
packaging/nnstreamer.spec

index 4879971..3e06e4a 100644 (file)
@@ -206,7 +206,9 @@ DESTDIR=%{buildroot} ninja -C build %{?_smp_mflags} install
 %else
 %define testtarget
 %endif
-
+    # 'lcov' generates the date format with UTC time zone by default. Let's replace UTC with KST.
+    # If you ccan get a root privilege, run ln -sf /usr/share/zoneinfo/Asia/Seoul /etc/localtime
+    TZ='Asia/Seoul'; export TZ
     $(pwd)/tests/unittestcoverage.py module $(pwd)/gst $(pwd)/ext %testtarget
 
 # Get commit info