Mentioning the code below
loc, _ := time.LoadLocation("Asia/Kolkata")
now := time.Now().In(loc)
fmt.Println("Location : ", loc, " Time : ", now)
visit.Time = now
getting UTC time but i need to get IST in my datastore
Mentioning the code below
loc, _ := time.LoadLocation("Asia/Kolkata")
now := time.Now().In(loc)
fmt.Println("Location : ", loc, " Time : ", now)
visit.Time = now
getting UTC time but i need to get IST in my datastore
提到下面的代码 p>
loc,_:= time .LoadLocation(“ Asia / Kolkata”)
now:= time.Now()。In(loc)
fmt.Println(“ Location:”,loc,“ Time:”,now)
visit.Time = 现在
code> pre>
获取UTC时间,但我需要在数据存储区中获取IST p>
div>