我有一个来自 db 的字符串,比如说
dbString := "2020-03-16 14:46:13 +0530 IST"
我的要求是将此字符串作为 Timestamptz 插入到另一个表中
我正在尝试将 dbString 转换为 Time
timeToBeInserted := time.Parse(time.RFC3339,t.VO.DateLastModified)
我看到以下错误
+0000 UTC parsing time "2020-03-16 14:46:13 +0530 IST" as "2006-01-02T15:04:05Z07:00": cannot parse " 14:46:13 +0530 IST" as "T"
杨__羊羊
海绵宝宝撒
相关分类