Skip to content

Commit

Permalink
Update 2021-08-05-CCTV.ver.4.1.md
Browse files Browse the repository at this point in the history
  • Loading branch information
seohyun-kim authored Aug 21, 2021
1 parent 813bea4 commit 0b860f1
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions _posts/2021-08-05-CCTV.ver.4.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,35 +200,35 @@ mysql> desc person_speed;

### 타임존 설정 및 확인

이상하게 UTC시간이 현재 한국시간으로 나오고, 서버의 KST시간이 현재한국시간보다 +9 시간으로 나온다.....
그래서 다시 UTC 기준으로 변경하였다.

> 우분투 서버

```
~$ timedatectl
Local time: 토 2021-08-14 01:02:22 KST
Universal time: 금 2021-08-13 16:02:22 UTC
RTC time: 금 2021-08-13 16:02:22
Time zone: Asia/Seoul (KST, +0900)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
~$ date
2021. 08. 14. (토) 01:02:27 KST
Local time: 토 2021-08-21 22:38:11 UTC --------현재 한국시간
Universal time: 토 2021-08-21 22:38:11 UTC
RTC time: 토 2021-08-21 22:38:11
Time zone: UTC (UTC, +0000)
System clock synchronized: no
NTP service: active
RTC in local TZ: no
```


> mysql
mysql도 마찬가지로 +9 시간으로 나와서 SYSTEM시간으로 돌려주었다.

```sql
mysql> select @@global.time_zone, @@session.time_zone,@@system_time_zone;
+--------------------+---------------------+--------------------+
| @@global.time_zone | @@session.time_zone | @@system_time_zone |
+--------------------+---------------------+--------------------+
| Asia/Seoul | Asia/Seoul | KST |
| SYSTEM | SYSTEM | UTC |
+--------------------+---------------------+--------------------+
1 row in set (0.00 sec)
1 row in set (0.04 sec)
```

<br>
Expand Down

0 comments on commit 0b860f1

Please sign in to comment.