-
Notifications
You must be signed in to change notification settings - Fork 37
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
Incorrect conversion of Timex.now/1
to DateTime.utc_now/1
#66
Comments
:O thanks for the bug report! will have that fixed in a jiffy |
fixed on main, will publish a release at the end of the workday =) thanks again for the report (and even moreso for telling me what it should be!) |
Thanks for the quick fix! |
released v0.8.4, hope this works better across the pond now :) |
Hello! I noticed that this issue is still happening when using the pipe operator: "Europe/London" |> Timex.now() |> dbg()
# becomes
"Europe/London" |> DateTime.utc_now() |> dbg() The fix is happening on the node (apparent arity 0), but doesn't account for the effective arity of the call due to the pipe (arity 1). |
ahh thank you sabiwara, and apologies for missing that. will get a fix up |
published 0.9.5 with fix for the pipes problem. cheers |
Thanks Matt for the fix and for the awesome project! Cheers 💜 |
Versions
Example Input
Stacktrace / Current Behaviour
Styler converts
Timex.now/1
toDateTime.utc_now/1
, which expects a calendar or unit (not a timezone). This is the formatted code:I believe the correct conversion should be:
The text was updated successfully, but these errors were encountered: