Skip to content

Instantly share code, notes, and snippets.

@crispgm
Last active February 21, 2021 10:52
Show Gist options
  • Save crispgm/96d944b776e4d6cd92cb19156b84ee47 to your computer and use it in GitHub Desktop.
Save crispgm/96d944b776e4d6cd92cb19156b84ee47 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"time"
)
func main() {
loc, _ := time.LoadLocation("Asia/Shanghai")
t := time.Now().In(loc)
fmt.Println(t)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment