-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timezone parsing issue #166
Comments
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
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 |
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.The text was updated successfully, but these errors were encountered: