-
timezone issueToday I Learned 2020. 1. 21. 11:09
moment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersvar moment = require('moment'); require('moment-timezone'); moment.tz.setDefault("Asia/Seoul"); RDS
AWS RDS mysql 시간 설정 ( timezone 변경 )
AWS RDS Mysql 엔진을 이용중이다. 시간 로그를 남기는데 시간이 다르게 나온다. 우분투 서버만 바꾸고 디비 서버는 별개라는걸 깜박했다. 그리고 GUI 환경에서 바꾸려다보니 뭐가 이리도 복잡한지.. 일단 현재 시..
brtech.tistory.com
sequelize
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersconst config = { host: process.env.DB_HOST, username: process.env.DB_USER, password: process.env.DB_PASSWORD, database: process.env.DB_NAME, dialect: "mysql", // Sequelize는 문법에 독립적이다. dialect(방언)에서 설정만 해주면 다양한 SQL 문법을 자유롭게 변역할 수 있다. operatorsAliases: false, // Sequelize는 연산자에 대하여 별칭을 부여할 수 있게 해줍니다. timezone: '+09:00', define: { timestamps: false } }; 'Today I Learned' 카테고리의 다른 글
Github issue의 중요성 (0) 2020.02.05 http vs https vs http2 (0) 2020.01.22 Sequelize를 이용한 대댓글 기능 구현 (1) 2020.01.21 form 기본값 주기 (0) 2020.01.21 form에서 put, delete를 지원하지 않는 이유 (0) 2020.01.18