Skip to content

Instantly share code, notes, and snippets.

@kevinmichaelchen
kevinmichaelchen / utc-timezone-mysql.md
Last active June 15, 2018 17:21 — forked from dotspencer/utc-timezone-mysql.md
Setting UTC timezone with homebrew installed mysql

Edit /usr/local/etc/my.cnf

Add the following below [mysqld]

default-time-zone='+00:00'

Restart mysql with brew services restart mysql

mysql> SELECT @@system_time_zone, @@global.time_zone, @@session.time_zone;