-
Notifications
You must be signed in to change notification settings - Fork 503
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
Parse dates in current Location? #49
Comments
Hey, thanks for using the library! First, yes that's correct to return And, yeah, i think you're probably right that |
Thanks for the answer. While thinking about this, I realize that it could be a good idea to let the user chose its setting about date parsing, that may be If I try to had such thing, how do you see it? As a per-expression setting or a global one? What the API would look like? Any thoughts? |
It could be a good idea to have that kind of setting, but seems sort of edge-case. I wouldn't worry about it for now. If it becomes a problem, there are a couple ways to handle it later. I'm not so concerned with compatibility, this actually feels like it borders on a bug. If i were a user, i would expect to be able to pass Parsing in the current location (unless explicitly specified in the time string) is also is what i think most users would expect. |
Hi,
First, big thanks for this library, it's awesome, really.
I use custom functions in my expression returning
(float64)xxx.Unix()
values (I hope it's correct to do so?). But when comparing values with literal dates like '2017-03-11' (without an explicit zone) , I have timezone offset.Currently, dates are parsed using
time.Parse()
and the documentation states "In the absence of a time zone indicator, Parse returns a time in UTC." It makes me think thattime.ParseInLocation()
with the current Location should be used instead.What do you think? It sounds OK to you? If so, I can create a PR, of course.
Thanks again for the lib !
The text was updated successfully, but these errors were encountered: