Open clseibold opened 7 months ago
missing Location in call to Date
I have searched for this keyword and it looks like the zoneinfo database is missing.
I don't know how to fix it for your environment, but I think I did execute
apt install -y tzdata
https://stackoverflow.com/questions/44331836/apt-get-install-tzdata-noninteractive
I'm on Windows. I don't see how my timezone info should be missing when the program (a server) was running just fine 6 hours ago and then suddenly stopped working after a restart. I haven't restarted the desktop at all, so I guess I could try that.
I also have a crawler currently running that has stayed running for longer than 6 hours, and it is working just fine and is able to keep inserting things into the db. So it's only when I startup my server within the past 6 hours that I've gotten the problem.
Thanks for the help. I guess I'll try restarting the whole desktop and report back here if that changes anything.
@nakagami Golang has a zoneinfo.zip stored in GOROOT\lib\time\ to store the timezone information. I just checked and I do have the zoneinfo.zip file, so I don't think my timezone info is missing.
Golang fortunately has a way to use an embedded tzdata by importing the "time/tzdata" package, so I'll try that next.
Ok, using the embedded tzdata (by importing with _ "time/tzdata"
) seems to have worked. I will still like to figure out why the tzdata stored in GOROOT wasn't being read, so I'll look more into that.
I'm getting an issue with Timezones. It seems to happen at line 305 in xsqlvar.go, within the parseTimestampTz function. db.go line 293 in my code is a call to
rows.Next()
. I'm not even getting to the point where I callrows.Scan()
. This issue seems to have popped up out of nowhere. The program was working just fine for a while, and then suddenly I started getting this issue, and I didn't make any changes to this sql code.