본문 바로가기 메뉴 바로가기

just_HS

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

just_HS

검색하기 폼
  • 분류 전체보기 (500)
    • python (6)
    • golang (108)
    • embedded (25)
    • google cloud platform (3)
    • google colaboratory (4)
    • deep learning (3)
    • blockchain (9)
    • git (15)
    • etc (16)
    • life-health (25)
    • javascript30 (19)
    • development (76)
    • book-movie (126)
    • til (40)
    • generative-ai (8)
    • book: how minds change (2)
    • develop-and-AI (15)
  • 방명록

tzdata (1)
Golang: timezone 설정하기

개요 Golang Docker container 내에서 timezone을 한국으로 하고 싶다. 이를 위해서는 원하는 timezone을 로드한 다음, 설정을 하면 되는데 경량 이미지라면 timezone data를 이미지에 추가해줘야 한다. 구현 Local time 설정하기 실행 코드: https://goplay.tools/snippet/jsxRaDEqQeY time.LoadLocation 으로 timezone을 로드해서 time.Local 에 설정하면 KST 로 나오는 것을 알 수 있다. package main import ( "fmt" "time" ) func main() { // Load the Seoul timezone currentTime := time.Now() fmt.Println("Curren..

golang 2023. 6. 11. 23:59
이전 1 다음
이전 다음
반응형
잡학툰 뱃지
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
TAG
  • 티스토리챌린지
  • postgres
  • strange
  • 잡학툰
  • 클린 애자일
  • clean agile
  • 체호프
  • middleware
  • websocket
  • 독서후기
  • 영화
  • golang
  • Echo
  • bun
  • github
  • 오블완
  • API
  • 인텔리제이
  • backend
  • solid
  • agile
  • 독서
  • Gin
  • gocore
  • ChatGPT
  • OpenAI
  • notion
  • go
  • MCP
  • intellij
more
«   2026/02   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바